Skip to content
Permalink
Browse files

clang-devel: disable XRAY on incompatible systems

  • Loading branch information
kencu committed Sep 30, 2018
1 parent bafb66e commit 6c664b0613a9e0ef87a58c8dc5fcf35adde7b8d1
Showing with 11 additions and 0 deletions.
  1. +11 −0 lang/llvm-devel/Portfile
@@ -239,6 +239,17 @@ if {${subport} eq "llvm-${llvm_version}"} {
configure.args-append \
-DCOMPILER_RT_BUILD_LIBFUZZER=OFF
}

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 6c664b0

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