diff options
author | 2016-07-29 16:11:35 +0800 | |
---|---|---|
committer | 2016-08-14 07:58:36 +0200 | |
commit | 4e65f08472f93b9dbccc1b1243b5f38541bdc261 (patch) | |
tree | ea8b051184af1ff8234a33809ec0d1e4bd812817 /sys-devel/llvm | |
parent | mate-base/mate-applets: remove unnecessary gtk3 dep on mate-settings (diff) | |
download | gentoo-4e65f08472f93b9dbccc1b1243b5f38541bdc261.tar.gz gentoo-4e65f08472f93b9dbccc1b1243b5f38541bdc261.tar.bz2 gentoo-4e65f08472f93b9dbccc1b1243b5f38541bdc261.zip |
sys-devel/llvm: update the live ebuild
Closes: https://github.com/gentoo/gentoo/pull/2066
Package-Manager: portage-2.2.28
Diffstat (limited to 'sys-devel/llvm')
-rw-r--r-- | sys-devel/llvm/llvm-9999.ebuild | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/sys-devel/llvm/llvm-9999.ebuild b/sys-devel/llvm/llvm-9999.ebuild index 34204522634b..c8a34ba3f9fa 100644 --- a/sys-devel/llvm/llvm-9999.ebuild +++ b/sys-devel/llvm/llvm-9999.ebuild @@ -20,9 +20,9 @@ EGIT_REPO_URI="http://llvm.org/git/llvm.git LICENSE="UoI-NCSA" SLOT="0/${PV%.*}" KEYWORDS="" -IUSE="clang debug +doc gold libedit +libffi lldb multitarget ncurses ocaml - python +static-analyzer test xml video_cards_radeon - kernel_Darwin kernel_FreeBSD" +IUSE="clang debug default-compiler-rt default-libcxx +doc gold libedit +libffi + lldb multitarget ncurses ocaml python +sanitize +static-analyzer test xml + video_cards_radeon elibc_musl kernel_Darwin kernel_FreeBSD" COMMON_DEPEND=" sys-libs/zlib:0= @@ -60,6 +60,7 @@ DEPEND="${COMMON_DEPEND} ${PYTHON_DEPS}" RDEPEND="${COMMON_DEPEND} clang? ( !<=sys-devel/clang-${PV}-r99 ) + default-libcxx? ( sys-libs/libcxx ) abi_x86_32? ( !<=app-emulation/emul-linux-x86-baselibs-20130224-r2 !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] )" PDEPEND="clang? ( =sys-devel/clang-${PV}-r100 )" @@ -174,6 +175,9 @@ src_prepare() { # https://bugs.gentoo.org/show_bug.cgi?id=578392 eapply "${FILESDIR}"/llvm-3.8-soversion.patch + # support building llvm against musl-libc + use elibc_musl && eapply "${FILESDIR}"/llvm-3.8-musl-fixes.patch + # disable use of SDK on OSX, bug #568758 sed -i -e 's/xcrun/false/' utils/lit/lit/util.py || die @@ -257,6 +261,14 @@ multilib_src_configure() { # libgomp support fails to find headers without explicit -I # furthermore, it provides only syntax checking -DCLANG_DEFAULT_OPENMP_RUNTIME=libomp + + # override default stdlib and rtlib + -DCLANG_DEFAULT_CXX_STDLIB=$(usex default-libcxx libc++ "") + -DCLANG_DEFAULT_RTLIB=$(usex default-compiler-rt compiler-rt "") + + # compiler-rt's test cases depend on sanitizer + -DCOMPILER_RT_BUILD_SANITIZERS=$(usex sanitize) + -DCOMPILER_RT_INCLUDE_TESTS=$(usex sanitize) ) fi |