diff --git a/sys-devel/llvm/llvm-3.5.2.ebuild b/sys-devel/llvm/llvm-3.5.2.ebuild index 8a8c32c9f7805..f6bb2c37914c8 100644 --- a/sys-devel/llvm/llvm-3.5.2.ebuild +++ b/sys-devel/llvm/llvm-3.5.2.ebuild @@ -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 diff --git a/sys-devel/llvm/llvm-3.6.2.ebuild b/sys-devel/llvm/llvm-3.6.2.ebuild index 2e7bc9ad9b174..21f4f9df756d5 100644 --- a/sys-devel/llvm/llvm-3.6.2.ebuild +++ b/sys-devel/llvm/llvm-3.6.2.ebuild @@ -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 diff --git a/sys-devel/llvm/llvm-3.7.1.ebuild b/sys-devel/llvm/llvm-3.7.1.ebuild index d41de0686b95b..fa15adf29fa7a 100644 --- a/sys-devel/llvm/llvm-3.7.1.ebuild +++ b/sys-devel/llvm/llvm-3.7.1.ebuild @@ -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 diff --git a/sys-devel/llvm/llvm-9999.ebuild b/sys-devel/llvm/llvm-9999.ebuild index bf4286783fd36..582064971ca6c 100644 --- a/sys-devel/llvm/llvm-9999.ebuild +++ b/sys-devel/llvm/llvm-9999.ebuild @@ -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