Skip to content
Permalink
Browse files

clang-7.0/8.0/devel: disable fuzzer on <= 10.8

there is an unusual error in the libfuzzer cmake logic
that makes it build against the iphonesimulator SDK
this fails the thread_local test

see: https://trac.macports.org/ticket/58291
  • Loading branch information
kencu committed Apr 5, 2019
1 parent f004628 commit 4d5d3045665dc3c8138d613e2e26b7f0889ff1e6
Showing with 8 additions and 5 deletions.
  1. +3 −2 lang/llvm-7.0/Portfile
  2. +2 −1 lang/llvm-8.0/Portfile
  3. +3 −2 lang/llvm-devel/Portfile
@@ -269,8 +269,9 @@ if {${subport} eq "llvm-${llvm_version}"} {
-DCOMPILER_RT_BUILD_SANITIZERS=OFF
}

if {${os.major} <= 11} {
# libfuzzer uses TLS, so disable it on Snow Leopard and earlier
if {${os.major} <= 12} {
# libfuzzer uses TLS, fails on 10.8 and less
# possibly fixable, see https://trac.macports.org/ticket/58291
configure.args-append \
-DCOMPILER_RT_BUILD_LIBFUZZER=OFF
}
@@ -270,7 +270,8 @@ if {${subport} eq "llvm-${llvm_version}"} {
}

if {${os.major} <= 12} {
# libfuzzer uses TLS, so disable it on 10.8 and earlier
# libfuzzer uses TLS, fails on 10.8 and less
# possibly fixable, see https://trac.macports.org/ticket/58291
configure.args-append \
-DCOMPILER_RT_BUILD_LIBFUZZER=OFF
}
@@ -238,8 +238,9 @@ if {${subport} eq "llvm-${llvm_version}"} {
-DCOMPILER_RT_BUILD_SANITIZERS=OFF
}

if {${os.major} <= 11} {
# libfuzzer uses TLS, so disable it on Snow Leopard and earlier
if {${os.major} <= 12} {
# libfuzzer uses TLS, fails on 10.8 and less
# possibly fixable, see https://trac.macports.org/ticket/58291
configure.args-append \
-DCOMPILER_RT_BUILD_LIBFUZZER=OFF
}

0 comments on commit 4d5d304

Please sign in to comment.
You can’t perform that action at this time.