diff options
author | Michał Górny <mgorny@gentoo.org> | 2016-09-24 21:37:11 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2016-09-29 16:12:57 +0200 |
commit | bbb81adbfb550e7e4a71329b2e11f5aa79953428 (patch) | |
tree | dc5806a8b9443b5c3d2846e24c2f5f2a2ba8d6af /sys-devel/llvm | |
parent | 1ae19cdc14fed8e2a9837bb5b1fe1824139cf08a (diff) | |
download | gentoo-bbb81adbfb550e7e4a71329b2e11f5aa79953428.tar.gz gentoo-bbb81adbfb550e7e4a71329b2e11f5aa79953428.tar.xz |
sys-devel/llvm: Use LLVM_TARGETS flags
Diffstat (limited to 'sys-devel/llvm')
-rw-r--r-- | sys-devel/llvm/llvm-9999.ebuild | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/sys-devel/llvm/llvm-9999.ebuild b/sys-devel/llvm/llvm-9999.ebuild index 4c8d6da5ab8..526f2530464 100644 --- a/sys-devel/llvm/llvm-9999.ebuild +++ b/sys-devel/llvm/llvm-9999.ebuild @@ -18,11 +18,16 @@ SRC_URI="" EGIT_REPO_URI="http://llvm.org/git/llvm.git https://github.com/llvm-mirror/llvm.git" +# Keep in sync with CMakeLists.txt +ALL_LLVM_TARGETS=( AArch64 AMDGPU ARM BPF Hexagon Lanai Mips MSP430 + NVPTX PowerPC Sparc SystemZ X86 XCore ) +ALL_LLVM_TARGETS=( "${ALL_LLVM_TARGETS[@]/#/llvm_targets_}" ) + LICENSE="UoI-NCSA" SLOT="0/${PV%.*}" KEYWORDS="" IUSE="debug +doc gold libedit +libffi multitarget ncurses ocaml test - video_cards_radeon elibc_musl kernel_Darwin" + elibc_musl kernel_Darwin ${ALL_LLVM_TARGETS[*]}" RDEPEND=" sys-libs/zlib:0= @@ -49,7 +54,9 @@ DEPEND="${RDEPEND} !!<dev-python/configparser-3.3.0.2 ${PYTHON_DEPS}" -REQUIRED_USE="${PYTHON_REQUIRED_USE}" +REQUIRED_USE="${PYTHON_REQUIRED_USE} + || ( ${ALL_LLVM_TARGETS[*]} ) + multitarget? ( ${ALL_LLVM_TARGETS[*]} )" pkg_pretend() { # in megs @@ -121,14 +128,6 @@ src_prepare() { } multilib_src_configure() { - local targets - if use multitarget; then - targets=all - else - targets='host;BPF' - use video_cards_radeon && targets+=';AMDGPU' - fi - local ffi_cflags ffi_ldflags if use libffi; then ffi_cflags=$(pkg-config --cflags-only-I libffi) @@ -140,7 +139,7 @@ multilib_src_configure() { -DLLVM_LIBDIR_SUFFIX=${libdir#lib} -DBUILD_SHARED_LIBS=ON - -DLLVM_TARGETS_TO_BUILD="${targets}" + -DLLVM_TARGETS_TO_BUILD="${LLVM_TARGETS// /;}" -DLLVM_BUILD_TESTS=$(usex test) -DLLVM_ENABLE_FFI=$(usex libffi) |