sys-devel/llvm: disable the use of xcrun on OSX, bug #568758
authorFabian Groffen <grobian@gentoo.org>
Sat, 9 Jan 2016 18:53:19 +0000 (19:53 +0100)
committerFabian Groffen <grobian@gentoo.org>
Sat, 9 Jan 2016 18:54:07 +0000 (19:54 +0100)
Package-Manager: portage-2.2.20-prefix

sys-devel/llvm/llvm-3.5.2.ebuild
sys-devel/llvm/llvm-3.6.2.ebuild
sys-devel/llvm/llvm-3.7.1.ebuild
sys-devel/llvm/llvm-9999.ebuild

index 8a8c32c9f7805952b07e1947ae671768a6db041d..f6bb2c37914c8d8f63a65a303e1b14fda2c796bf 100644 (file)
@@ -165,6 +165,9 @@ src_prepare() {
                        projects/compiler-rt/make/platform/clang_*.mk || die
        fi
 
+       # disable use of SDK on OSX, bug #568758
+       sed -i -e 's/xcrun/false/' utils/lit/lit/util.py || die
+
        local sub_files=(
                Makefile.config.in
                Makefile.rules
index 2e7bc9ad9b174b02995a8fae028e49d0eca8433d..21f4f9df756d5e528483cb1dfc39e93ee88bbb68 100644 (file)
@@ -172,6 +172,9 @@ src_prepare() {
                        projects/compiler-rt/make/platform/clang_*.mk || die
        fi
 
+       # disable use of SDK on OSX, bug #568758
+       sed -i -e 's/xcrun/false/' utils/lit/lit/util.py || die
+
        local sub_files=(
                Makefile.config.in
                Makefile.rules
index d41de0686b95be84f7fe64ee7da4c601246b613a..fa15adf29fa7ae7b89faf00386e6fce5b17b6a63 100644 (file)
@@ -173,6 +173,9 @@ src_prepare() {
        # Fix msan with newer kernels, #569894
        epatch "${FILESDIR}"/llvm-3.7-msan-fix.patch
 
+       # disable use of SDK on OSX, bug #568758
+       sed -i -e 's/xcrun/false/' utils/lit/lit/util.py || die
+
        if use clang; then
                # Automatically select active system GCC's libraries, bugs #406163 and #417913
                epatch "${FILESDIR}"/clang-3.5-gentoo-runtime-gcc-detection-v3.patch
index bf4286783fd36a6461f2b9372dcab14f3d133d57..582064971ca6c3e4442cb11803b50221612717d0 100644 (file)
@@ -174,6 +174,9 @@ src_prepare() {
        # https://bugs.gentoo.org/show_bug.cgi?id=565358
        epatch "${FILESDIR}"/llvm-3.8-llvm-config.patch
 
+       # disable use of SDK on OSX, bug #568758
+       sed -i -e 's/xcrun/false/' utils/lit/lit/util.py || die
+
        if use clang; then
                # Automatically select active system GCC's libraries, bugs #406163 and #417913
                epatch "${FILESDIR}"/clang-3.5-gentoo-runtime-gcc-detection-v3.patch