diff options
author | Michał Górny <mgorny@gentoo.org> | 2016-09-25 20:18:48 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2016-09-29 16:13:15 +0200 |
commit | d7d357f8b36cac4f8f02c6d68b8cf41b193f0058 (patch) | |
tree | 776a903d0df91cf8f7a38a7c4d473b0f7d5e761f /sys-devel | |
parent | sys-devel/llvm: Backport LLVM_TARGETS to 3.9.0 (diff) | |
download | gentoo-d7d357f8b36cac4f8f02c6d68b8cf41b193f0058.tar.gz gentoo-d7d357f8b36cac4f8f02c6d68b8cf41b193f0058.tar.bz2 gentoo-d7d357f8b36cac4f8f02c6d68b8cf41b193f0058.zip |
sys-devel/clang: Backport LLVM_TARGETS to 3.9.0
Diffstat (limited to 'sys-devel')
-rw-r--r-- | sys-devel/clang/clang-3.9.0-r100.ebuild | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/sys-devel/clang/clang-3.9.0-r100.ebuild b/sys-devel/clang/clang-3.9.0-r100.ebuild index dd5380696797..283db0740622 100644 --- a/sys-devel/clang/clang-3.9.0-r100.ebuild +++ b/sys-devel/clang/clang-3.9.0-r100.ebuild @@ -10,13 +10,23 @@ DESCRIPTION="C language family frontend for LLVM (meta-ebuild)" HOMEPAGE="http://clang.llvm.org/" SRC_URI="" +# Keep in sync with sys-devel/llvm +ALL_LLVM_TARGETS=( AArch64 AMDGPU ARM BPF Hexagon Mips MSP430 + NVPTX PowerPC Sparc SystemZ X86 XCore ) +ALL_LLVM_TARGETS=( "${ALL_LLVM_TARGETS[@]/#/llvm_targets_}" ) +LLVM_TARGET_USEDEPS=${ALL_LLVM_TARGETS[@]/%/?} + LICENSE="UoI-NCSA" # keep in sync with sys-devel/llvm! SLOT="0/${PV}" KEYWORDS="~amd64 ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos" -IUSE="debug multitarget python +static-analyzer" +IUSE="debug multitarget python +static-analyzer ${ALL_LLVM_TARGETS[*]}" + +RDEPEND="~sys-devel/llvm-${PV}[clang(-),debug=,python?,static-analyzer?,${LLVM_TARGET_USEDEPS// /,},${MULTILIB_USEDEP}]" -RDEPEND="~sys-devel/llvm-${PV}[clang(-),debug=,multitarget?,python?,static-analyzer?,${MULTILIB_USEDEP}]" +REQUIRED_USE=" + || ( ${ALL_LLVM_TARGETS[*]} ) + multitarget? ( ${ALL_LLVM_TARGETS[*]} )" # Please keep this package around since it's quite likely that we'll # return to separate LLVM & clang ebuilds when the cmake build system |