1 |
commit: d7d357f8b36cac4f8f02c6d68b8cf41b193f0058 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Sep 25 18:18:48 2016 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 29 14:13:15 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d7d357f8 |
7 |
|
8 |
sys-devel/clang: Backport LLVM_TARGETS to 3.9.0 |
9 |
|
10 |
sys-devel/clang/clang-3.9.0-r100.ebuild | 14 ++++++++++++-- |
11 |
1 file changed, 12 insertions(+), 2 deletions(-) |
12 |
|
13 |
diff --git a/sys-devel/clang/clang-3.9.0-r100.ebuild b/sys-devel/clang/clang-3.9.0-r100.ebuild |
14 |
index dd53806..283db07 100644 |
15 |
--- a/sys-devel/clang/clang-3.9.0-r100.ebuild |
16 |
+++ b/sys-devel/clang/clang-3.9.0-r100.ebuild |
17 |
@@ -10,13 +10,23 @@ DESCRIPTION="C language family frontend for LLVM (meta-ebuild)" |
18 |
HOMEPAGE="http://clang.llvm.org/" |
19 |
SRC_URI="" |
20 |
|
21 |
+# Keep in sync with sys-devel/llvm |
22 |
+ALL_LLVM_TARGETS=( AArch64 AMDGPU ARM BPF Hexagon Mips MSP430 |
23 |
+ NVPTX PowerPC Sparc SystemZ X86 XCore ) |
24 |
+ALL_LLVM_TARGETS=( "${ALL_LLVM_TARGETS[@]/#/llvm_targets_}" ) |
25 |
+LLVM_TARGET_USEDEPS=${ALL_LLVM_TARGETS[@]/%/?} |
26 |
+ |
27 |
LICENSE="UoI-NCSA" |
28 |
# keep in sync with sys-devel/llvm! |
29 |
SLOT="0/${PV}" |
30 |
KEYWORDS="~amd64 ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos" |
31 |
-IUSE="debug multitarget python +static-analyzer" |
32 |
+IUSE="debug multitarget python +static-analyzer ${ALL_LLVM_TARGETS[*]}" |
33 |
+ |
34 |
+RDEPEND="~sys-devel/llvm-${PV}[clang(-),debug=,python?,static-analyzer?,${LLVM_TARGET_USEDEPS// /,},${MULTILIB_USEDEP}]" |
35 |
|
36 |
-RDEPEND="~sys-devel/llvm-${PV}[clang(-),debug=,multitarget?,python?,static-analyzer?,${MULTILIB_USEDEP}]" |
37 |
+REQUIRED_USE=" |
38 |
+ || ( ${ALL_LLVM_TARGETS[*]} ) |
39 |
+ multitarget? ( ${ALL_LLVM_TARGETS[*]} )" |
40 |
|
41 |
# Please keep this package around since it's quite likely that we'll |
42 |
# return to separate LLVM & clang ebuilds when the cmake build system |