<pre style='margin:0'>
Jeremy Huddleston Sequoia (jeremyhu) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/5f97dcba940933af543104d66b1c5cb7a3170d0a">https://github.com/macports/macports-ports/commit/5f97dcba940933af543104d66b1c5cb7a3170d0a</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 5f97dcb clang-3.{8,9,devel}: Place ppc archs into the darwin runtime architectures instead of arm archs on Snow Leopard and Leopard
</span>5f97dcb is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 5f97dcba940933af543104d66b1c5cb7a3170d0a
</span>Author: Jeremy Huddleston Sequoia <jeremyhu@macports.org>
AuthorDate: Fri Nov 4 09:05:26 2016 -0700
<span style='display:block; white-space:pre;color:#404040;'> clang-3.{8,9,devel}: Place ppc archs into the darwin runtime architectures instead of arm archs on Snow Leopard and Leopard
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> This is a necessary (but not sufficient) change for anyone interested
</span><span style='display:block; white-space:pre;color:#404040;'> in getting cmake-built clang working for darwin/ppc.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@macports.org>
</span>---
lang/llvm-3.8/Portfile | 4 ++++
lang/llvm-3.8/files/compiler_rt-ppc_fallbacks.patch | 14 ++++++++++++++
lang/llvm-3.9/Portfile | 4 ++++
lang/llvm-3.9/files/compiler_rt-ppc_fallbacks.patch | 14 ++++++++++++++
lang/llvm-devel/Portfile | 4 ++++
lang/llvm-devel/files/compiler_rt-ppc_fallbacks.patch | 14 ++++++++++++++
6 files changed, 54 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/llvm-3.8/Portfile b/lang/llvm-3.8/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index d602100..a3d634c 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/llvm-3.8/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/llvm-3.8/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -285,6 +285,10 @@ platform darwin {
</span> configure.args-append -DCOMPILER_RT_BUILD_SANITIZERS=OFF
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${subport} eq "clang-${llvm_version}" && ${os.major} <= 10} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles-append compiler_rt-ppc_fallbacks.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> if {${subport} eq "clang-${llvm_version}" && ${os.major} <= 9} {
patchfiles-append leopard-no-blocks.patch
}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/llvm-3.8/files/compiler_rt-ppc_fallbacks.patch b/lang/llvm-3.8/files/compiler_rt-ppc_fallbacks.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..8812cf4
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/llvm-3.8/files/compiler_rt-ppc_fallbacks.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,14 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git a/cmake/Modules/CompilerRTDarwinUtils.cmake b/cmake/Modules/CompilerRTDarwinUtils.cmake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index c1347de..33e457c 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- llvm_release_38/projects/compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ macports_release_38/projects/compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -31,7 +31,7 @@ function(darwin_get_toolchain_supported_archs output_var)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ else()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # If auto-detecting fails, fall back to a default set
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ message(WARNING "Detecting supported architectures from 'ld -v' failed. Returning default set.")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set(ARCHES "i386;x86_64;armv7;armv7s;arm64")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(ARCHES "i386;x86_64;ppc;ppc64")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(${output_var} ${ARCHES} PARENT_SCOPE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/llvm-3.9/Portfile b/lang/llvm-3.9/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index b2b3d98..faaba0c 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/llvm-3.9/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/llvm-3.9/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -277,6 +277,10 @@ platform darwin {
</span> configure.args-append -DCOMPILER_RT_BUILD_SANITIZERS=OFF
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${subport} eq "clang-${llvm_version}" && ${os.major} <= 10} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles-append compiler_rt-ppc_fallbacks.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> if {${subport} eq "clang-${llvm_version}" && ${os.major} <= 9} {
patchfiles-append leopard-no-blocks.patch
}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/llvm-3.9/files/compiler_rt-ppc_fallbacks.patch b/lang/llvm-3.9/files/compiler_rt-ppc_fallbacks.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..8812cf4
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/llvm-3.9/files/compiler_rt-ppc_fallbacks.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,14 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git a/cmake/Modules/CompilerRTDarwinUtils.cmake b/cmake/Modules/CompilerRTDarwinUtils.cmake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index c1347de..33e457c 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- llvm_release_38/projects/compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ macports_release_38/projects/compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -31,7 +31,7 @@ function(darwin_get_toolchain_supported_archs output_var)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ else()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # If auto-detecting fails, fall back to a default set
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ message(WARNING "Detecting supported architectures from 'ld -v' failed. Returning default set.")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set(ARCHES "i386;x86_64;armv7;armv7s;arm64")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(ARCHES "i386;x86_64;ppc;ppc64")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(${output_var} ${ARCHES} PARENT_SCOPE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/llvm-devel/Portfile b/lang/llvm-devel/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 3f4522c..7ec453c 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/llvm-devel/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/llvm-devel/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -310,6 +310,10 @@ platform darwin {
</span> configure.args-append -DCOMPILER_RT_BUILD_SANITIZERS=OFF
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${subport} eq "clang-${llvm_version}" && ${os.major} <= 10} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles-append compiler_rt-ppc_fallbacks.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> if {${subport} eq "clang-${llvm_version}" && ${os.major} <= 9} {
patchfiles-append leopard-no-blocks.patch
}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/llvm-devel/files/compiler_rt-ppc_fallbacks.patch b/lang/llvm-devel/files/compiler_rt-ppc_fallbacks.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..8812cf4
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/llvm-devel/files/compiler_rt-ppc_fallbacks.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,14 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git a/cmake/Modules/CompilerRTDarwinUtils.cmake b/cmake/Modules/CompilerRTDarwinUtils.cmake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index c1347de..33e457c 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- llvm_release_38/projects/compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ macports_release_38/projects/compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -31,7 +31,7 @@ function(darwin_get_toolchain_supported_archs output_var)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ else()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # If auto-detecting fails, fall back to a default set
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ message(WARNING "Detecting supported architectures from 'ld -v' failed. Returning default set.")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set(ARCHES "i386;x86_64;armv7;armv7s;arm64")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(ARCHES "i386;x86_64;ppc;ppc64")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(${output_var} ${ARCHES} PARENT_SCOPE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span></pre><pre style='margin:0'>
</pre>