Skip to content

Commit

Permalink
sys-devel/clang: Include all experimental targets in -9999
Browse files Browse the repository at this point in the history
  • Loading branch information
mgorny committed Aug 15, 2017
1 parent c3996ca commit b4836e8
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions sys-devel/clang/clang-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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[@]/%/?}

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b4836e8

Please sign in to comment.