Skip to content
Permalink
Browse files

clang-7.0: fix build on darwin 14 and less

XRAY currently does not build on these systesm due to the
issues mentioned in the Portfile
closes: https://trac.macports.org/ticket/57130
  • Loading branch information
kencu committed Sep 30, 2018
1 parent f599b67 commit bafb66e16d5ed7e0b3b70b1f1caf82a5b3068463
Showing with 8 additions and 1 deletion.
  1. +8 −1 lang/llvm-7.0/Portfile
@@ -268,11 +268,18 @@ if {${subport} eq "llvm-${llvm_version}"} {
# libfuzzer uses TLS, so disable it on Snow Leopard and earlier
configure.args-append \
-DCOMPILER_RT_BUILD_LIBFUZZER=OFF
}

# XRAY uses TLS, so disable it on Snow Leopard and earlier
if {${os.major} <= 14} {
# XRAY uses TLS, MAP_ANONYMOUS, and clock_gettime, so disable it
# on systems that don't currently support these features
# see https://trac.macports.org/ticket/57130
# https://bugs.llvm.org/show_bug.cgi?id=38959
# https://bugs.llvm.org/show_bug.cgi?id=38958
configure.args-append \
-DCOMPILER_RT_BUILD_XRAY=OFF
}

} elseif {${subport} eq "lldb-${llvm_version}"} {
#select.group lldb
#select.file ${filespath}/mp-${subport}

0 comments on commit bafb66e

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