llvm-14: Allow build on darwin23 but disable sanitizers

This commit is contained in:
Chris Jones
2023-09-28 14:38:39 +01:00
parent 0c2af47349
commit 370d81aeee
+10 -4
View File
@@ -20,8 +20,6 @@ categories lang
license NCSA
maintainers nomaintainer
platforms {darwin < 23}
set llvm_version 14
set clang_exe_version ${llvm_version}
version ${llvm_version}.0.6
@@ -292,7 +290,7 @@ if { ${subport} eq "flang-${llvm_version}" } {
if { ${subport} eq "mlir-${llvm_version}" ||
${subport} eq "flang-${llvm_version}" } {
# temporarily restrict to newer systems until older systems can be rigorously vetted
platforms {darwin >= 10} {darwin < 23}
platforms {darwin >= 10}
}
if { ${subport} eq "clang-${llvm_version}" || ${subport} eq "flang-${llvm_version}" } {
@@ -333,6 +331,14 @@ if { ${subport} eq "clang-${llvm_version}" || ${subport} eq "flang-${llvm_versio
-DCOMPILER_RT_BUILD_MEMPROF=OFF
}
if {${os.platform} eq "darwin" && ${os.major} > 22} {
# sanitizers also fail to build on macOS14
# https://trac.macports.org/ticket/68257
configure.args-append -DCOMPILER_RT_BUILD_SANITIZERS=OFF \
-DCOMPILER_RT_BUILD_XRAY=OFF \
-DCOMPILER_RT_BUILD_MEMPROF=OFF
}
if {${os.platform} eq "darwin" && ${os.major} <= 11} {
# xpc.h available 10.7 but doesn't support nullable features
configure.args-append -DCLANGD_BUILD_XPC=OFF
@@ -360,7 +366,7 @@ if {${subport} eq "lldb-${llvm_version}"} {
select.file ${filespath}/mp-${subport}
# error: use of undeclared identifier 'CPU_SUBTYPE_ARM64E
platforms {darwin >= 18} {darwin < 23}
platforms {darwin >= 18}
configure.args-append \
-DLLDB_CODESIGN_IDENTITY=- \