<pre style='margin:0'>
Chris Jones (cjones051073) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/8e56a107e57f5f49ce516907d0d5611b182976bc">https://github.com/macports/macports-ports/commit/8e56a107e57f5f49ce516907d0d5611b182976bc</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 8e56a107e57 LLVM 14: Disable iOS support on older systems
</span>8e56a107e57 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 8e56a107e57f5f49ce516907d0d5611b182976bc
</span>Author: Chris Jones <jonesc@macports.org>
AuthorDate: Tue Mar 29 11:06:41 2022 +0100
<span style='display:block; white-space:pre;color:#404040;'> LLVM 14: Disable iOS support on older systems
</span>---
lang/llvm-14/Portfile | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/llvm-14/Portfile b/lang/llvm-14/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index b3af80e5f53..b3d8b4bcdb6 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/llvm-14/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/llvm-14/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -80,6 +80,11 @@ configure.args-append \
</span> -DFFI_INCLUDE_DIR=${prefix}/include \
-DFFI_LIBRARY_DIR=${prefix}/lib
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# Disable iOS support on older systems
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${os.platform} eq "darwin" && ${os.major} <= 12} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append -DCOMPILER_RT_ENABLE_IOS=OFF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> # cctools is needed to handle objects from newer clang toolchains
if {[string match macports-clang-* ${configure.compiler}]} {
depends_build-append port:cctools
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -313,13 +318,13 @@ if { ${subport} eq "clang-${llvm_version}" || ${subport} eq "flang-${llvm_versio
</span> -DDARWIN_PREFER_PUBLIC_SDK=ON \
-DLLVM_BUILD_RUNTIME=ON
<span style='display:block; white-space:pre;background:#ffe0e0;'>- if {${os.major} <= 18} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${os.platform} eq "darwin" && ${os.major} <= 18} {
</span> # on systems that might build i386, we need atomic builtins
# https://trac.macports.org/ticket/58712
configure.args-append -DCOMPILER_RT_EXCLUDE_ATOMIC_BUILTIN=OFF
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>- if {${os.major} <= 14} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${os.platform} eq "darwin" && ${os.major} <= 14} {
</span> # compiler-rt does a broad search for an SDK it likes, but this
# search fails on older systems that don't have a MacOSX.sdk
# TODO: apply this always to all systems?
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -334,16 +339,17 @@ if { ${subport} eq "clang-${llvm_version}" || ${subport} eq "flang-${llvm_versio
</span> -DCOMPILER_RT_BUILD_MEMPROF=OFF
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>- if {${os.major} <= 11} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${os.platform} eq "darwin" && ${os.major} <= 11} {
</span> # xpc.h available 10.7 but doesn't support nullable features
configure.args-append -DCLANGD_BUILD_XPC=OFF
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>- if {${os.major} <= 10} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${os.platform} eq "darwin" && ${os.major} <= 10} {
</span> # avoid need for thread_local_storage
configure.args-append -DCLANG_ENABLE_CLANGD=OFF \
-DLLVM_ENABLE_BACKTRACES=OFF
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> }
if {${subport} eq "lldb-${llvm_version}"} {
</pre><pre style='margin:0'>
</pre>