summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2016-09-04 17:03:09 +0200
committerFabian Groffen <grobian@gentoo.org>2016-09-04 17:04:42 +0200
commit159c9d730cdd4ed188ef9aa4ad9a36e322461ce2 (patch)
treeecb7112fba57101fd262816593ba23145e595bc0 /sys-devel/llvm/files
parentmail-client/mutt: revbump for using correct patchset (diff)
downloadgentoo-159c9d730cdd4ed188ef9aa4ad9a36e322461ce2.tar.gz
gentoo-159c9d730cdd4ed188ef9aa4ad9a36e322461ce2.tar.bz2
gentoo-159c9d730cdd4ed188ef9aa4ad9a36e322461ce2.zip
sys-devel/llvm: add patch for compiler-rt on Darwin/Prefix
Package-Manager: portage-2.2.28
Diffstat (limited to 'sys-devel/llvm/files')
-rw-r--r--sys-devel/llvm/files/3.8.1/compiler-rt/darwin-default-sysroot.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/sys-devel/llvm/files/3.8.1/compiler-rt/darwin-default-sysroot.patch b/sys-devel/llvm/files/3.8.1/compiler-rt/darwin-default-sysroot.patch
new file mode 100644
index 000000000000..9122ce9bc79a
--- /dev/null
+++ b/sys-devel/llvm/files/3.8.1/compiler-rt/darwin-default-sysroot.patch
@@ -0,0 +1,14 @@
+find_darwin_sdk_dir: fall back to / for sysroot
+
+--- a/projects/compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake
++++ b/projects/compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake
+@@ -17,6 +17,9 @@
+ ERROR_FILE /dev/null
+ )
+ endif()
++ if("" STREQUAL "${var_internal}")
++ set(var_internal "/")
++ endif()
+ set(${var} ${var_internal} PARENT_SCOPE)
+ endfunction()
+