summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2017-08-15 13:20:08 +0200
committerMichał Górny <mgorny@gentoo.org>2017-08-15 14:35:34 +0200
commitb4836e88a5c9fefdff18941eb028a4ba0c80d45e (patch)
treee5fa371e628ae4003d43dc69403bee5ff910e1ab /sys-devel/clang
parentsys-devel/llvm: Include all experimental targets in -9999 (diff)
downloadgentoo-b4836e88a5c9fefdff18941eb028a4ba0c80d45e.tar.gz
gentoo-b4836e88a5c9fefdff18941eb028a4ba0c80d45e.tar.bz2
gentoo-b4836e88a5c9fefdff18941eb028a4ba0c80d45e.zip
sys-devel/clang: Include all experimental targets in -9999
Diffstat (limited to 'sys-devel/clang')
-rw-r--r--sys-devel/clang/clang-9999.ebuild9
1 files changed, 7 insertions, 2 deletions
diff --git a/sys-devel/clang/clang-9999.ebuild b/sys-devel/clang/clang-9999.ebuild
index 73335e4fa4f4..007031b36370 100644
--- a/sys-devel/clang/clang-9999.ebuild
+++ b/sys-devel/clang/clang-9999.ebuild
@@ -18,8 +18,10 @@ EGIT_REPO_URI="https://git.llvm.org/git/clang.git
https://github.com/llvm-mirror/clang.git"
# Keep in sync with sys-devel/llvm
+ALL_LLVM_EXPERIMENTAL_TARGETS=( AVR Nios2 RISCV WebAssembly )
ALL_LLVM_TARGETS=( AArch64 AMDGPU ARM BPF Hexagon Lanai Mips MSP430
- NVPTX PowerPC Sparc SystemZ X86 XCore )
+ NVPTX PowerPC Sparc SystemZ X86 XCore
+ "${ALL_LLVM_EXPERIMENTAL_TARGETS[@]}" )
ALL_LLVM_TARGETS=( "${ALL_LLVM_TARGETS[@]/#/llvm_targets_}" )
LLVM_TARGET_USEDEPS=${ALL_LLVM_TARGETS[@]/%/?}
@@ -125,7 +127,10 @@ multilib_src_configure() {
-DCLANG_RESOURCE_DIR="../../../../lib/clang/${clang_version}"
-DBUILD_SHARED_LIBS=ON
- -DLLVM_TARGETS_TO_BUILD="${LLVM_TARGETS// /;}"
+ # cheap hack: LLVM combines both anyway, and the only difference
+ # is that the former list is explicitly verified at cmake time
+ -DLLVM_TARGETS_TO_BUILD=""
+ -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD="${LLVM_TARGETS// /;}"
-DLLVM_BUILD_TESTS=$(usex test)
# these are not propagated reliably, so redefine them