<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/fcd5cabc79b0cadf9e1c14efb942a3cd5ad5c71f">https://github.com/macports/macports-ports/commit/fcd5cabc79b0cadf9e1c14efb942a3cd5ad5c71f</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 fcd5cab clang-3.8: Ensure that libclang_rt.osx.a and libclang_rt.cc_kext.a get built on Leopard and Snow Leopard
</span>fcd5cab is described below
<span style='display:block; white-space:pre;color:#808000;'>commit fcd5cabc79b0cadf9e1c14efb942a3cd5ad5c71f
</span>Author: Jeremy Huddleston Sequoia <jeremyhu@macports.org>
AuthorDate: Wed Nov 2 20:38:26 2016 -0700
<span style='display:block; white-space:pre;color:#404040;'> clang-3.8: Ensure that libclang_rt.osx.a and libclang_rt.cc_kext.a get built on Leopard and Snow Leopard
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Fixes https://llvm.org/bugs/show_bug.cgi?id=28855
</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 | 6 +
...ts-Only-Comment-out-SL-cctools-workaround.patch | 14 +-
...kArches-to-fallback-on-Intel-ppc-if-ld-v-.patch | 14 +-
...n-xcodebuild-sdk-when-xcrun-sdk-is-not-su.patch | 14 +-
...uild-ppc-slices-of-the-compiler-runtime-i.patch | 14 +-
...ly-Don-t-build-x86_64h-slice-of-compiler-.patch | 14 +-
...ly-Fix-regression-introduced-when-fixing-.patch | 14 +-
...ly-Don-t-check-for-the-macosx.internal-SD.patch | 14 +-
...ove-macro-definitions-out-of-config-ix.cm.patch | 154 +++++++++++++++++++
...e-Adding-some-missing-CMake-includes.-NFC.patch | 27 ++++
...CMake-Adding-another-missing-include.-NFC.patch | 26 ++++
...Add-support-for-testing-the-compiler-with.patch | 163 +++++++++++++++++++++
lang/llvm-3.8/files/2012-Add-missing-include.patch | 32 ++++
13 files changed, 457 insertions(+), 49 deletions(-)
<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 1b4635f..d602100 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;'>@@ -142,6 +142,11 @@ if {${subport} eq "clang-${llvm_version}"} {
</span> 2005-MacPorts-Only-Don-t-build-x86_64h-slice-of-compiler-.patch \
2006-MacPorts-Only-Fix-regression-introduced-when-fixing-.patch \
2007-MacPorts-Only-Don-t-check-for-the-macosx.internal-SD.patch \
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ 2008-CMake-NFC-Move-macro-definitions-out-of-config-ix.cm.patch \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 2009-CMake-Adding-some-missing-CMake-includes.-NFC.patch \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 2010-CMake-Adding-another-missing-include.-NFC.patch \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 2011-CMake-NFC.-Add-support-for-testing-the-compiler-with.patch \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 2012-Add-missing-include.patch \
</span> 3001-buildit-build-fix-for-Leopard.patch \
3002-buildit-Set-compatibility-version-to-RC_ProjectSourc.patch \
3003-Fix-local-and-iterator-when-building-with-Lion-and-n.patch \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -201,6 +206,7 @@ if {${subport} eq "llvm-${llvm_version}"} {
</span> configure.args-append \
-DCLANG_INCLUDE_TESTS=OFF \
-DCLANG_ENABLE_STATIC_ANALYZER=OFF \
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DTEST_COMPILE_ONLY=YES \
</span> -DLLVM_BUILD_RUNTIME=ON \
-DLIBCXX_INSTALL_LIBRARY=OFF
}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/llvm-3.8/files/2001-MacPorts-Only-Comment-out-SL-cctools-workaround.patch b/lang/llvm-3.8/files/2001-MacPorts-Only-Comment-out-SL-cctools-workaround.patch
</span><span style='display:block; white-space:pre;color:#808080;'>index 9a2b80c..6f43d67 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/llvm-3.8/files/2001-MacPorts-Only-Comment-out-SL-cctools-workaround.patch
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/llvm-3.8/files/2001-MacPorts-Only-Comment-out-SL-cctools-workaround.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,17 +1,17 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-From 2d2c241cda3099ec3900ee2924201d3d19eea69e Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From 3aa6d1ee974918c0b34e4cd88102d976203c85fc Mon Sep 17 00:00:00 2001
</span> From: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
Date: Mon, 15 Apr 2013 22:38:18 -0700
<span style='display:block; white-space:pre;background:#ffe0e0;'>-Subject: [PATCH 2001/2007] MacPorts Only: Comment out SL cctools workaround
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subject: [PATCH 2001/2012] MacPorts Only: Comment out SL cctools workaround
</span>
Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
---
make/platform/clang_darwin.mk | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
<span style='display:block; white-space:pre;background:#ffe0e0;'>-diff --git llvm_master/projects/compiler-rt/make/platform/clang_darwin.mk macports_master/projects/compiler-rt/make/platform/clang_darwin.mk
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-index f85ced5..62b6f92 100644
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- llvm_master/projects/compiler-rt/make/platform/clang_darwin.mk
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ macports_master/projects/compiler-rt/make/platform/clang_darwin.mk
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git llvm_release_38/projects/compiler-rt/make/platform/clang_darwin.mk macports_release_38/projects/compiler-rt/make/platform/clang_darwin.mk
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 9944481..b0805d9 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- llvm_release_38/projects/compiler-rt/make/platform/clang_darwin.mk
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ macports_release_38/projects/compiler-rt/make/platform/clang_darwin.mk
</span> @@ -125,11 +125,11 @@ UniversalArchs.ubsan_iossim_dynamic := $(call CheckArches,i386 x86_64,ubsan_ioss
# object files. If we are on that platform, strip out all ARM archs. We still
# build the libraries themselves so that Clang can find them where it expects
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -30,5 +30,5 @@ index f85ced5..62b6f92 100644
</span> # If RC_SUPPORTED_ARCHS is defined, treat it as a list of the architectures we
# are intended to support and limit what we try to build to that.
--
<span style='display:block; white-space:pre;background:#ffe0e0;'>-2.6.3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+2.10.1
</span>
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/llvm-3.8/files/2002-Update-CheckArches-to-fallback-on-Intel-ppc-if-ld-v-.patch b/lang/llvm-3.8/files/2002-Update-CheckArches-to-fallback-on-Intel-ppc-if-ld-v-.patch
</span><span style='display:block; white-space:pre;color:#808080;'>index 1350efd..4009f8b 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/llvm-3.8/files/2002-Update-CheckArches-to-fallback-on-Intel-ppc-if-ld-v-.patch
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/llvm-3.8/files/2002-Update-CheckArches-to-fallback-on-Intel-ppc-if-ld-v-.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,7 +1,7 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-From 1f0a6b8bdd5b4e4d00eb039f4ebd9dc0a703c091 Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From a423be24de6f008c7c6201e9cf2ae6b8e70807b5 Mon Sep 17 00:00:00 2001
</span> From: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
Date: Sat, 10 Jan 2015 03:34:51 -0800
<span style='display:block; white-space:pre;background:#ffe0e0;'>-Subject: [PATCH 2002/2007] Update CheckArches to fallback on Intel/ppc if ld
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subject: [PATCH 2002/2012] Update CheckArches to fallback on Intel/ppc if ld
</span> -v doesn't report supported architectures
Older versions of ld64 (eg: Xcode 3.x) do not report this.
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -13,10 +13,10 @@ Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
</span> make/platform/clang_darwin.mk | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
<span style='display:block; white-space:pre;background:#ffe0e0;'>-diff --git llvm_master/projects/compiler-rt/make/platform/clang_darwin.mk macports_master/projects/compiler-rt/make/platform/clang_darwin.mk
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-index 62b6f92..e8b8ced 100644
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- llvm_master/projects/compiler-rt/make/platform/clang_darwin.mk
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ macports_master/projects/compiler-rt/make/platform/clang_darwin.mk
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git llvm_release_38/projects/compiler-rt/make/platform/clang_darwin.mk macports_release_38/projects/compiler-rt/make/platform/clang_darwin.mk
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index b0805d9..e7fe51c 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- llvm_release_38/projects/compiler-rt/make/platform/clang_darwin.mk
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ macports_release_38/projects/compiler-rt/make/platform/clang_darwin.mk
</span> @@ -17,8 +17,7 @@ CheckArches = \
result=""; \
if [ "X$(3)" != X ]; then \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -28,5 +28,5 @@ index 62b6f92..e8b8ced 100644
</span> -integrated-as \
$(ProjSrcRoot)/make/platform/clang_darwin_test_input.c \
--
<span style='display:block; white-space:pre;background:#ffe0e0;'>-2.6.3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+2.10.1
</span>
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/llvm-3.8/files/2003-Fall-back-on-xcodebuild-sdk-when-xcrun-sdk-is-not-su.patch b/lang/llvm-3.8/files/2003-Fall-back-on-xcodebuild-sdk-when-xcrun-sdk-is-not-su.patch
</span><span style='display:block; white-space:pre;color:#808080;'>index 0d59738..df9cdf3 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/llvm-3.8/files/2003-Fall-back-on-xcodebuild-sdk-when-xcrun-sdk-is-not-su.patch
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/llvm-3.8/files/2003-Fall-back-on-xcodebuild-sdk-when-xcrun-sdk-is-not-su.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,7 +1,7 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-From 4d677715aded5099cadcb7c647729d05a7126930 Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From 9f051c8643d623564a918c03f5863c4e9ed29fe4 Mon Sep 17 00:00:00 2001
</span> From: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
Date: Sat, 17 Jan 2015 17:45:27 -0800
<span style='display:block; white-space:pre;background:#ffe0e0;'>-Subject: [PATCH 2003/2007] Fall back on xcodebuild -sdk when xcrun --sdk is
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subject: [PATCH 2003/2012] Fall back on xcodebuild -sdk when xcrun --sdk is
</span> not supported
Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -9,10 +9,10 @@ Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
</span> make/platform/clang_darwin.mk | 4 ++++
1 file changed, 4 insertions(+)
<span style='display:block; white-space:pre;background:#ffe0e0;'>-diff --git llvm_master/projects/compiler-rt/make/platform/clang_darwin.mk macports_master/projects/compiler-rt/make/platform/clang_darwin.mk
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-index e8b8ced..4f25a55 100644
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- llvm_master/projects/compiler-rt/make/platform/clang_darwin.mk
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ macports_master/projects/compiler-rt/make/platform/clang_darwin.mk
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git llvm_release_38/projects/compiler-rt/make/platform/clang_darwin.mk macports_release_38/projects/compiler-rt/make/platform/clang_darwin.mk
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index e7fe51c..8e04b72 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- llvm_release_38/projects/compiler-rt/make/platform/clang_darwin.mk
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ macports_release_38/projects/compiler-rt/make/platform/clang_darwin.mk
</span> @@ -49,6 +49,10 @@ XCRunSdkPath = \
result=`xcrun --sdk $(1).internal --show-sdk-path 2> /dev/null`; \
if [ "$$?" != "0" ]; then \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -25,5 +25,5 @@ index e8b8ced..4f25a55 100644
</span> fi; \
echo $$result)
--
<span style='display:block; white-space:pre;background:#ffe0e0;'>-2.6.3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+2.10.1
</span>
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/llvm-3.8/files/2004-On-darwin-build-ppc-slices-of-the-compiler-runtime-i.patch b/lang/llvm-3.8/files/2004-On-darwin-build-ppc-slices-of-the-compiler-runtime-i.patch
</span><span style='display:block; white-space:pre;color:#808080;'>index 1b4914e..550053e 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/llvm-3.8/files/2004-On-darwin-build-ppc-slices-of-the-compiler-runtime-i.patch
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/llvm-3.8/files/2004-On-darwin-build-ppc-slices-of-the-compiler-runtime-i.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,7 +1,7 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-From efbd8b49c0815fa8a83f8d4cef51e8d0de3cbfad Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From db353247dcbea0c34afd7b1a133cf3efa0f6a455 Mon Sep 17 00:00:00 2001
</span> From: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
Date: Sat, 17 Jan 2015 19:55:19 -0800
<span style='display:block; white-space:pre;background:#ffe0e0;'>-Subject: [PATCH 2004/2007] On darwin, build ppc slices of the compiler runtime
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subject: [PATCH 2004/2012] On darwin, build ppc slices of the compiler runtime
</span> if requested and supported by the SDK and toolchain
Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -9,10 +9,10 @@ Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
</span> make/platform/clang_darwin.mk | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
<span style='display:block; white-space:pre;background:#ffe0e0;'>-diff --git llvm_master/projects/compiler-rt/make/platform/clang_darwin.mk macports_master/projects/compiler-rt/make/platform/clang_darwin.mk
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-index 4f25a55..3f683e9 100644
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- llvm_master/projects/compiler-rt/make/platform/clang_darwin.mk
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ macports_master/projects/compiler-rt/make/platform/clang_darwin.mk
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git llvm_release_38/projects/compiler-rt/make/platform/clang_darwin.mk macports_release_38/projects/compiler-rt/make/platform/clang_darwin.mk
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 8e04b72..cdd5152 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- llvm_release_38/projects/compiler-rt/make/platform/clang_darwin.mk
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ macports_release_38/projects/compiler-rt/make/platform/clang_darwin.mk
</span> @@ -80,10 +80,10 @@ Configs += eprintf
UniversalArchs.eprintf := $(call CheckArches,i386,eprintf,$(OSX_SDK))
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -51,5 +51,5 @@ index 4f25a55..3f683e9 100644
</span> UniversalArchs.profile_ios := $(call CheckArches,i386 x86_64,profile_ios,$(IOSSIM_SDK))
UniversalArchs.profile_ios += $(call CheckArches,armv7 arm64,profile_ios,$(IOS_SDK))
--
<span style='display:block; white-space:pre;background:#ffe0e0;'>-2.6.3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+2.10.1
</span>
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/llvm-3.8/files/2005-MacPorts-Only-Don-t-build-x86_64h-slice-of-compiler-.patch b/lang/llvm-3.8/files/2005-MacPorts-Only-Don-t-build-x86_64h-slice-of-compiler-.patch
</span><span style='display:block; white-space:pre;color:#808080;'>index 90fe349..6af4c44 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/llvm-3.8/files/2005-MacPorts-Only-Don-t-build-x86_64h-slice-of-compiler-.patch
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/llvm-3.8/files/2005-MacPorts-Only-Don-t-build-x86_64h-slice-of-compiler-.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,7 +1,7 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-From 1c58350ef60e7b54d8b0ef6ea58791d6e8390b90 Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From 8c1a244003aa961ef5132ab8c82bfcca53f0ab0c Mon Sep 17 00:00:00 2001
</span> From: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
Date: Wed, 14 Jan 2015 19:55:19 -0800
<span style='display:block; white-space:pre;background:#ffe0e0;'>-Subject: [PATCH 2005/2007] MacPorts Only: Don't build x86_64h slice of
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subject: [PATCH 2005/2012] MacPorts Only: Don't build x86_64h slice of
</span> compiler-rt
Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -9,10 +9,10 @@ Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
</span> make/platform/clang_darwin.mk | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
<span style='display:block; white-space:pre;background:#ffe0e0;'>-diff --git llvm_master/projects/compiler-rt/make/platform/clang_darwin.mk macports_master/projects/compiler-rt/make/platform/clang_darwin.mk
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-index 3f683e9..62116a9 100644
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- llvm_master/projects/compiler-rt/make/platform/clang_darwin.mk
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ macports_master/projects/compiler-rt/make/platform/clang_darwin.mk
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git llvm_release_38/projects/compiler-rt/make/platform/clang_darwin.mk macports_release_38/projects/compiler-rt/make/platform/clang_darwin.mk
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index cdd5152..626e747 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- llvm_release_38/projects/compiler-rt/make/platform/clang_darwin.mk
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ macports_release_38/projects/compiler-rt/make/platform/clang_darwin.mk
</span> @@ -94,11 +94,11 @@ UniversalArchs.ios += $(call CheckArches,armv7 arm64,ios,$(IOS_SDK))
# Configuration for targeting OSX. These functions may not be in libSystem
# so we should provide our own.
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -52,5 +52,5 @@ index 3f683e9..62116a9 100644
</span> Configs += ubsan_iossim_dynamic
UniversalArchs.ubsan_iossim_dynamic := $(call CheckArches,i386 x86_64,ubsan_iossim_dynamic,$(IOSSIM_SDK))
--
<span style='display:block; white-space:pre;background:#ffe0e0;'>-2.6.3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+2.10.1
</span>
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/llvm-3.8/files/2006-MacPorts-Only-Fix-regression-introduced-when-fixing-.patch b/lang/llvm-3.8/files/2006-MacPorts-Only-Fix-regression-introduced-when-fixing-.patch
</span><span style='display:block; white-space:pre;color:#808080;'>index 7a96d2a..5ec04ae 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/llvm-3.8/files/2006-MacPorts-Only-Fix-regression-introduced-when-fixing-.patch
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/llvm-3.8/files/2006-MacPorts-Only-Fix-regression-introduced-when-fixing-.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,7 +1,7 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-From 7664b6e22365f91d330bf10f3255ad4190410000 Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From ced176f16f23efed0c922bfe92f9422890942073 Mon Sep 17 00:00:00 2001
</span> From: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
Date: Sun, 11 Oct 2015 09:02:26 -0700
<span style='display:block; white-space:pre;background:#ffe0e0;'>-Subject: [PATCH 2006/2007] MacPorts Only: Fix regression introduced when
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subject: [PATCH 2006/2012] MacPorts Only: Fix regression introduced when
</span> fixing PR24776
Partially reverts commit efecb2c285bd444b6def43ac62e5f0278df387eb
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -11,10 +11,10 @@ Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
</span> make/platform/clang_darwin.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
<span style='display:block; white-space:pre;background:#ffe0e0;'>-diff --git llvm_master/projects/compiler-rt/make/platform/clang_darwin.mk macports_master/projects/compiler-rt/make/platform/clang_darwin.mk
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-index 62116a9..6cc3e53 100644
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- llvm_master/projects/compiler-rt/make/platform/clang_darwin.mk
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ macports_master/projects/compiler-rt/make/platform/clang_darwin.mk
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git llvm_release_38/projects/compiler-rt/make/platform/clang_darwin.mk macports_release_38/projects/compiler-rt/make/platform/clang_darwin.mk
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 626e747..3f5e948 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- llvm_release_38/projects/compiler-rt/make/platform/clang_darwin.mk
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ macports_release_38/projects/compiler-rt/make/platform/clang_darwin.mk
</span> @@ -18,7 +18,7 @@ CheckArches = \
if [ "X$(3)" != X ]; then \
for arch in $(1); do \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -25,5 +25,5 @@ index 62116a9..6cc3e53 100644
</span> $(ProjSrcRoot)/make/platform/clang_darwin_test_input.c \
-isysroot $(3) \
--
<span style='display:block; white-space:pre;background:#ffe0e0;'>-2.6.3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+2.10.1
</span>
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/llvm-3.8/files/2007-MacPorts-Only-Don-t-check-for-the-macosx.internal-SD.patch b/lang/llvm-3.8/files/2007-MacPorts-Only-Don-t-check-for-the-macosx.internal-SD.patch
</span><span style='display:block; white-space:pre;color:#808080;'>index fc8ec3d..49c790f 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/llvm-3.8/files/2007-MacPorts-Only-Don-t-check-for-the-macosx.internal-SD.patch
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/llvm-3.8/files/2007-MacPorts-Only-Don-t-check-for-the-macosx.internal-SD.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,7 +1,7 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-From 4cf3736c2a21e608d12b0fc153533be359029d7b Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From 7830e0520ea2d4074ea2b721dacdc99e0021ebac Mon Sep 17 00:00:00 2001
</span> From: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
Date: Mon, 30 Nov 2015 00:52:14 -0500
<span style='display:block; white-space:pre;background:#ffe0e0;'>-Subject: [PATCH 2007/2007] MacPorts Only: Don't check for the macosx.internal
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subject: [PATCH 2007/2012] MacPorts Only: Don't check for the macosx.internal
</span> SDK
https://llvm.org/bugs/show_bug.cgi?id=25677
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -11,10 +11,10 @@ Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
</span> cmake/Modules/CompilerRTDarwinUtils.cmake | 9 ---------
1 file changed, 9 deletions(-)
<span style='display:block; white-space:pre;background:#ffe0e0;'>-diff --git llvm_master/projects/compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake macports_master/projects/compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-index 4947ae4..611756a 100644
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- llvm_master/projects/compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ macports_master/projects/compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git llvm_release_38/projects/compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake macports_release_38/projects/compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 895ecdc..2902f9d 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> @@ -2,21 +2,12 @@
# set the default Xcode to use. This function finds the SDKs that are present in
# the current Xcode.
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -38,5 +38,5 @@ index 4947ae4..611756a 100644
</span> endfunction()
--
<span style='display:block; white-space:pre;background:#ffe0e0;'>-2.6.3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+2.10.1
</span>
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/llvm-3.8/files/2008-CMake-NFC-Move-macro-definitions-out-of-config-ix.cm.patch b/lang/llvm-3.8/files/2008-CMake-NFC-Move-macro-definitions-out-of-config-ix.cm.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..da02058
</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/2008-CMake-NFC-Move-macro-definitions-out-of-config-ix.cm.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,154 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From 4f0a8e56db5286d799caac9c3ff7f3fdb2cbf675 Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From: Chris Bieneman <beanz@apple.com>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Date: Wed, 17 Feb 2016 16:57:38 +0000
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subject: [PATCH 2008/2012] [CMake] [NFC] Move macro definitions out of
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ config-ix.cmake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+This change should have no functional impact, it just moves some macro definitions out of config-ix.cmake into CompilerRTUtils.cmake.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+This step will allow these macros to be re-used by the separated builtin build.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@261108 91177308-0d34-0410-b5e6-96231b3b80d8
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+(cherry picked from commit 824b8b303b973df9232a4ea49d9c49dd7881ec55)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+---
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ cmake/Modules/CompilerRTUtils.cmake | 54 +++++++++++++++++++++++++++++++++++++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ cmake/config-ix.cmake | 54 -------------------------------------
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 2 files changed, 54 insertions(+), 54 deletions(-)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git llvm_release_38/projects/compiler-rt/cmake/Modules/CompilerRTUtils.cmake macports_release_38/projects/compiler-rt/cmake/Modules/CompilerRTUtils.cmake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index ad9e70c..a8fd89a 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- llvm_release_38/projects/compiler-rt/cmake/Modules/CompilerRTUtils.cmake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ macports_release_38/projects/compiler-rt/cmake/Modules/CompilerRTUtils.cmake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -67,3 +67,57 @@ macro(list_intersect output input1 input2)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endforeach()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endmacro()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# Takes ${ARGN} and puts only supported architectures in @out_var list.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++function(filter_available_targets out_var)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(archs ${${out_var}})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ foreach(arch ${ARGN})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ list(FIND COMPILER_RT_SUPPORTED_ARCH ${arch} ARCH_INDEX)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if(NOT (ARCH_INDEX EQUAL -1) AND CAN_TARGET_${arch})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ list(APPEND archs ${arch})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ endforeach()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(${out_var} ${archs} PARENT_SCOPE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++endfunction()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++function(check_compile_definition def argstring out_var)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if("${def}" STREQUAL "")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(${out_var} TRUE PARENT_SCOPE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ return()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ cmake_push_check_state()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} ${argstring}")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ check_symbol_exists(${def} "" ${out_var})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ cmake_pop_check_state()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++endfunction()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# test_target_arch(<arch> <def> <target flags...>)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# Checks if architecture is supported: runs host compiler with provided
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# flags to verify that:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# 1) <def> is defined (if non-empty)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# 2) simple file can be successfully built.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# If successful, saves target flags for this architecture.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++macro(test_target_arch arch def)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(TARGET_${arch}_CFLAGS ${ARGN})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(argstring "")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ foreach(arg ${ARGN})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(argstring "${argstring} ${arg}")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ endforeach()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ check_compile_definition("${def}" "${argstring}" HAS_${arch}_DEF)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if(NOT HAS_${arch}_DEF)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(CAN_TARGET_${arch} FALSE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ else()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(argstring "${CMAKE_EXE_LINKER_FLAGS} ${argstring}")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ try_compile(CAN_TARGET_${arch} ${CMAKE_BINARY_DIR} ${SIMPLE_SOURCE}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ COMPILE_DEFINITIONS "${TARGET_${arch}_CFLAGS}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ OUTPUT_VARIABLE TARGET_${arch}_OUTPUT
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ CMAKE_FLAGS "-DCMAKE_EXE_LINKER_FLAGS:STRING=${argstring}")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if(${CAN_TARGET_${arch}})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ list(APPEND COMPILER_RT_SUPPORTED_ARCH ${arch})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ elseif("${COMPILER_RT_DEFAULT_TARGET_ARCH}" MATCHES "${arch}" AND
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ COMPILER_RT_HAS_EXPLICIT_DEFAULT_TARGET_TRIPLE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ # Bail out if we cannot target the architecture we plan to test.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ message(FATAL_ERROR "Cannot compile for ${arch}:\n${TARGET_${arch}_OUTPUT}")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++endmacro()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git llvm_release_38/projects/compiler-rt/cmake/config-ix.cmake macports_release_38/projects/compiler-rt/cmake/config-ix.cmake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index f8f5540..f509a49 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- llvm_release_38/projects/compiler-rt/cmake/config-ix.cmake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ macports_release_38/projects/compiler-rt/cmake/config-ix.cmake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -93,48 +93,6 @@ set(COMPILER_RT_SUPPORTED_ARCH)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(SIMPLE_SOURCE ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/simple.cc)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file(WRITE ${SIMPLE_SOURCE} "#include <stdlib.h>\n#include <limits>\nint main() {}\n")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-function(check_compile_definition def argstring out_var)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if("${def}" STREQUAL "")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set(${out_var} TRUE PARENT_SCOPE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- return()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- cmake_push_check_state()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} ${argstring}")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- check_symbol_exists(${def} "" ${out_var})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- cmake_pop_check_state()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-endfunction()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-# test_target_arch(<arch> <def> <target flags...>)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-# Checks if architecture is supported: runs host compiler with provided
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-# flags to verify that:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-# 1) <def> is defined (if non-empty)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-# 2) simple file can be successfully built.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-# If successful, saves target flags for this architecture.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-macro(test_target_arch arch def)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set(TARGET_${arch}_CFLAGS ${ARGN})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set(argstring "")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- foreach(arg ${ARGN})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set(argstring "${argstring} ${arg}")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- endforeach()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- check_compile_definition("${def}" "${argstring}" HAS_${arch}_DEF)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if(NOT HAS_${arch}_DEF)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set(CAN_TARGET_${arch} FALSE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- else()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set(argstring "${CMAKE_EXE_LINKER_FLAGS} ${argstring}")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- try_compile(CAN_TARGET_${arch} ${CMAKE_BINARY_DIR} ${SIMPLE_SOURCE}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- COMPILE_DEFINITIONS "${TARGET_${arch}_CFLAGS}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- OUTPUT_VARIABLE TARGET_${arch}_OUTPUT
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- CMAKE_FLAGS "-DCMAKE_EXE_LINKER_FLAGS:STRING=${argstring}")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if(${CAN_TARGET_${arch}})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- list(APPEND COMPILER_RT_SUPPORTED_ARCH ${arch})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- elseif("${COMPILER_RT_DEFAULT_TARGET_ARCH}" MATCHES "${arch}" AND
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- COMPILER_RT_HAS_EXPLICIT_DEFAULT_TARGET_TRIPLE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- # Bail out if we cannot target the architecture we plan to test.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- message(FATAL_ERROR "Cannot compile for ${arch}:\n${TARGET_${arch}_OUTPUT}")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-endmacro()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Add $arch as supported with no additional flags.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ macro(add_default_target_arch arch)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(TARGET_${arch}_CFLAGS "")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -234,18 +192,6 @@ elseif(NOT APPLE) # Supported archs for Apple platforms are generated later
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(COMPILER_RT_OS_SUFFIX "")
</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;'>+-# Takes ${ARGN} and puts only supported architectures in @out_var list.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-function(filter_available_targets out_var)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set(archs ${${out_var}})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- foreach(arch ${ARGN})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- list(FIND COMPILER_RT_SUPPORTED_ARCH ${arch} ARCH_INDEX)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if(NOT (ARCH_INDEX EQUAL -1) AND CAN_TARGET_${arch})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- list(APPEND archs ${arch})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- endforeach()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set(${out_var} ${archs} PARENT_SCOPE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-endfunction()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Returns a list of architecture specific target cflags in @out_var list.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ function(get_target_flags_for_arch arch out_var)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ list(FIND COMPILER_RT_SUPPORTED_ARCH ${arch} ARCH_INDEX)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+2.10.1
</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.8/files/2009-CMake-Adding-some-missing-CMake-includes.-NFC.patch b/lang/llvm-3.8/files/2009-CMake-Adding-some-missing-CMake-includes.-NFC.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..ed87520
</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/2009-CMake-Adding-some-missing-CMake-includes.-NFC.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,27 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From 153dba8911230c25b82dd216afc03408e294af26 Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From: Chris Bieneman <beanz@apple.com>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Date: Thu, 28 Apr 2016 18:22:01 +0000
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subject: [PATCH 2009/2012] [CMake] Adding some missing CMake includes. NFC.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+This happens to be working now because the includes exist in another CMake file that is included before this one. That will change with upcoming refactoring.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@267912 91177308-0d34-0410-b5e6-96231b3b80d8
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+(cherry picked from commit ee9e22a7cde70075c7643f6cf854d26cfbe08a05)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+---
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ cmake/Modules/CompilerRTUtils.cmake | 3 +++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 1 file changed, 3 insertions(+)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git llvm_release_38/projects/compiler-rt/cmake/Modules/CompilerRTUtils.cmake macports_release_38/projects/compiler-rt/cmake/Modules/CompilerRTUtils.cmake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index a8fd89a..c61c874 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- llvm_release_38/projects/compiler-rt/cmake/Modules/CompilerRTUtils.cmake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ macports_release_38/projects/compiler-rt/cmake/Modules/CompilerRTUtils.cmake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1,3 +1,6 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++include(CMakePushCheckState)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++include(CheckSymbolExists)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Because compiler-rt spends a lot of time setting up custom compile flags,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # define a handy helper function for it. The compile flags setting in CMake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # has serious issues that make its syntax challenging at best.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+2.10.1
</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.8/files/2010-CMake-Adding-another-missing-include.-NFC.patch b/lang/llvm-3.8/files/2010-CMake-Adding-another-missing-include.-NFC.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..949832c
</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/2010-CMake-Adding-another-missing-include.-NFC.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,26 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From cc0ccb75be38b14c2941987899c20c54ba12e846 Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From: Chris Bieneman <beanz@apple.com>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Date: Thu, 28 Apr 2016 21:16:45 +0000
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subject: [PATCH 2010/2012] [CMake] Adding another missing include. NFC.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+This also works fine today, but will break with my upcoming refactoring.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@267941 91177308-0d34-0410-b5e6-96231b3b80d8
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+(cherry picked from commit 9e256d0505936e31fb742ce73b39ae9d53cd2fe8)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+---
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ cmake/Modules/CompilerRTDarwinUtils.cmake | 2 ++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 1 file changed, 2 insertions(+)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git llvm_release_38/projects/compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake macports_release_38/projects/compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 2902f9d..e8f0fe6 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;'>+@@ -1,3 +1,5 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++include(CMakeParseArguments)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # On OS X SDKs can be installed anywhere on the base system and xcode-select can
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # set the default Xcode to use. This function finds the SDKs that are present in
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # the current Xcode.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+2.10.1
</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.8/files/2011-CMake-NFC.-Add-support-for-testing-the-compiler-with.patch b/lang/llvm-3.8/files/2011-CMake-NFC.-Add-support-for-testing-the-compiler-with.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..c497535
</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/2011-CMake-NFC.-Add-support-for-testing-the-compiler-with.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,163 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From 515a1bffe58399b143522d03d63e34b7c42385c9 Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From: Chris Bieneman <beanz@apple.com>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Date: Tue, 3 May 2016 19:48:11 +0000
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subject: [PATCH 2011/2012] [CMake] NFC. Add support for testing the compiler
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ without testing the linker
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Summary:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+One of the big limitations we have in the compiler-rt build system today is that we cannot bootstrap building the builtins because you need a fully functional toolchain to pass CMake's tests.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+This change adds support for compile only tests.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+It is NFC because nothing is using the compile-only tests yet.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+I believe this is the last separable part of D16653.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Reviewers: samsonov
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subscribers: llvm-commits
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Differential Revision: http://reviews.llvm.org/D19692
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@268427 91177308-0d34-0410-b5e6-96231b3b80d8
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+(cherry picked from commit 4e4d4302a346a8619da1ea3ddf2f9fdc13f572b0)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+---
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ cmake/Modules/BuiltinTests.cmake | 60 +++++++++++++++++++++++++++++++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ cmake/Modules/CompilerRTDarwinUtils.cmake | 32 ++++++++++-------
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ cmake/Modules/CompilerRTUtils.cmake | 2 ++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 3 files changed, 81 insertions(+), 13 deletions(-)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ create mode 100644 cmake/Modules/BuiltinTests.cmake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git llvm_release_38/projects/compiler-rt/cmake/Modules/BuiltinTests.cmake macports_release_38/projects/compiler-rt/cmake/Modules/BuiltinTests.cmake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+new file mode 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 0000000..fde5f75
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ macports_release_38/projects/compiler-rt/cmake/Modules/BuiltinTests.cmake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -0,0 +1,60 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# This function takes an OS and a list of architectures and identifies the
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# subset of the architectures list that the installed toolchain can target.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++function(try_compile_only output)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(SIMPLE_C ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/src.c)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ file(WRITE ${SIMPLE_C} "int foo(int x, int y) { return x + y; }\n")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ string(REGEX MATCHALL "<[A-Za-z0-9_]*>" substitutions
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ ${CMAKE_C_COMPILE_OBJECT})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ string(REPLACE ";" " " extra_flags "${ARGN}")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(test_compile_command "${CMAKE_C_COMPILE_OBJECT}")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ foreach(substitution ${substitutions})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if(substitution STREQUAL "<CMAKE_C_COMPILER>")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ string(REPLACE "<CMAKE_C_COMPILER>"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ "${CMAKE_C_COMPILER}" test_compile_command ${test_compile_command})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ elseif(substitution STREQUAL "<OBJECT>")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ string(REPLACE "<OBJECT>"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ "${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/test.o"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ test_compile_command ${test_compile_command})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ elseif(substitution STREQUAL "<SOURCE>")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ string(REPLACE "<SOURCE>" "${SIMPLE_C}" test_compile_command
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ ${test_compile_command})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ elseif(substitution STREQUAL "<FLAGS>")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ string(REPLACE "<FLAGS>" "${CMAKE_C_FLAGS} ${extra_flags}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ test_compile_command ${test_compile_command})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ else()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ string(REPLACE "${substitution}" "" test_compile_command
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ ${test_compile_command})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ endforeach()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ string(REPLACE " " ";" test_compile_command "${test_compile_command}")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ execute_process(
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ COMMAND ${test_compile_command}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ RESULT_VARIABLE result
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ OUTPUT_VARIABLE TEST_OUTPUT
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ ERROR_VARIABLE TEST_ERROR
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if(result EQUAL 0)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(${output} True PARENT_SCOPE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ else()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ file(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ "Testing compiler for supporting " ${ARGN} ":\n"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ "Command: ${test_compile_command}\n"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ "${TEST_OUTPUT}\n${TEST_ERROR}\n${result}\n")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(${output} False PARENT_SCOPE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++endfunction()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++function(builtin_check_c_compiler_flag flag output)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ message(STATUS "Performing Test ${output}")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ try_compile_only(result ${flag})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(${output} ${result} PARENT_SCOPE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if(${result})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ message(STATUS "Performing Test ${output} - Success")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ else()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ message(STATUS "Performing Test ${output} - Failed")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++endfunction()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git llvm_release_38/projects/compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake macports_release_38/projects/compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index e8f0fe6..3e2371a 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;'>+@@ -45,14 +45,16 @@ function(darwin_test_archs os valid_archs)
</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(archs ${ARGN})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- message(STATUS "Finding valid architectures for ${os}...")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set(SIMPLE_CPP ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/src.cpp)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- file(WRITE ${SIMPLE_CPP} "#include <iostream>\nint main() { std::cout << std::endl; return 0; }\n")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set(os_linker_flags)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- foreach(flag ${DARWIN_${os}_LINKFLAGS})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set(os_linker_flags "${os_linker_flags} ${flag}")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- endforeach()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if(NOT TEST_COMPILE_ONLY)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ message(STATUS "Finding valid architectures for ${os}...")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(SIMPLE_CPP ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/src.cpp)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ file(WRITE ${SIMPLE_CPP} "#include <iostream>\nint main() { std::cout << std::endl; return 0; }\n")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(os_linker_flags)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ foreach(flag ${DARWIN_${os}_LINKFLAGS})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(os_linker_flags "${os_linker_flags} ${flag}")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ endforeach()
</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;'>+ # The simple program will build for x86_64h on the simulator because it is
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # compatible with x86_64 libraries (mostly), but since x86_64h isn't actually
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -63,12 +65,16 @@ function(darwin_test_archs os valid_archs)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(working_archs)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach(arch ${archs})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(arch_linker_flags "-arch ${arch} ${os_linker_flags}")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- try_compile(CAN_TARGET_${os}_${arch} ${CMAKE_BINARY_DIR} ${SIMPLE_CPP}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- COMPILE_DEFINITIONS "-v -arch ${arch}" ${DARWIN_${os}_CFLAGS}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- CMAKE_FLAGS "-DCMAKE_EXE_LINKER_FLAGS=${arch_linker_flags}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- OUTPUT_VARIABLE TEST_OUTPUT)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if(TEST_COMPILE_ONLY)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ try_compile_only(CAN_TARGET_${os}_${arch} -v -arch ${arch} ${DARWIN_${os}_CFLAGS})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ else()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ try_compile(CAN_TARGET_${os}_${arch} ${CMAKE_BINARY_DIR} ${SIMPLE_CPP}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ COMPILE_DEFINITIONS "-v -arch ${arch}" ${DARWIN_${os}_CFLAGS}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ CMAKE_FLAGS "-DCMAKE_EXE_LINKER_FLAGS=${arch_linker_flags}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ OUTPUT_VARIABLE TEST_OUTPUT)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if(${CAN_TARGET_${os}_${arch}})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ list(APPEND working_archs ${arch})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ else()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git llvm_release_38/projects/compiler-rt/cmake/Modules/CompilerRTUtils.cmake macports_release_38/projects/compiler-rt/cmake/Modules/CompilerRTUtils.cmake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index c61c874..81706a9 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- llvm_release_38/projects/compiler-rt/cmake/Modules/CompilerRTUtils.cmake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ macports_release_38/projects/compiler-rt/cmake/Modules/CompilerRTUtils.cmake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -109,6 +109,8 @@ macro(test_target_arch arch def)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ check_compile_definition("${def}" "${argstring}" HAS_${arch}_DEF)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if(NOT HAS_${arch}_DEF)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(CAN_TARGET_${arch} FALSE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ elseif(TEST_COMPILE_ONLY)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ try_compile_only(CAN_TARGET_${arch} ${TARGET_${arch}_CFLAGS})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ else()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(argstring "${CMAKE_EXE_LINKER_FLAGS} ${argstring}")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ try_compile(CAN_TARGET_${arch} ${CMAKE_BINARY_DIR} ${SIMPLE_SOURCE}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+2.10.1
</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.8/files/2012-Add-missing-include.patch b/lang/llvm-3.8/files/2012-Add-missing-include.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..6d7aacc
</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/2012-Add-missing-include.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,32 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From e96c99ad64425673a5ceb071b993ae6526b9af5b Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Date: Fri, 4 Nov 2016 02:20:09 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subject: [PATCH 2012/2012] Add missing include
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+---
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ cmake/Modules/CompilerRTDarwinUtils.cmake | 1 +
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ cmake/Modules/CompilerRTUtils.cmake | 1 +
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 2 files changed, 2 insertions(+)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git llvm_release_38/projects/compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake macports_release_38/projects/compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 3e2371a..c1347de 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;'>+@@ -1,3 +1,4 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++include(BuiltinTests)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ include(CMakeParseArguments)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # On OS X SDKs can be installed anywhere on the base system and xcode-select can
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git llvm_release_38/projects/compiler-rt/cmake/Modules/CompilerRTUtils.cmake macports_release_38/projects/compiler-rt/cmake/Modules/CompilerRTUtils.cmake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 81706a9..ec5a4a0 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- llvm_release_38/projects/compiler-rt/cmake/Modules/CompilerRTUtils.cmake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ macports_release_38/projects/compiler-rt/cmake/Modules/CompilerRTUtils.cmake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1,3 +1,4 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++include(BuiltinTests)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ include(CMakePushCheckState)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ include(CheckSymbolExists)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+2.10.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span></pre><pre style='margin:0'>
</pre>