Gentoo Archives: gentoo-commits

From: Craig Andrews <candrews@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/llvm-roc/
Date: Sun, 27 Sep 2020 13:35:31
Message-Id: 1601213723.2679b0694f2749da161c6ec9889d327fad90c9a3.candrews@gentoo
1 commit: 2679b0694f2749da161c6ec9889d327fad90c9a3
2 Author: Wilfried Holzke <gentoo <AT> holzke <DOT> net>
3 AuthorDate: Sun Sep 20 11:16:42 2020 +0000
4 Commit: Craig Andrews <candrews <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 27 13:35:23 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2679b069
7
8 sys-devel/llvm-roc: Use flag to optionaly build runtime libraries
9
10 Signed-off-by: Wilfried Holzke <gentoo <AT> holzke.net>
11 Package-Manager: Portage-2.3.103, Repoman-2.3.23
12 Closes: https://github.com/gentoo/gentoo/pull/17611
13 Signed-off-by: Craig Andrews <candrews <AT> gentoo.org>
14
15 sys-devel/llvm-roc/llvm-roc-3.8.0.ebuild | 10 ++++++++--
16 sys-devel/llvm-roc/metadata.xml | 3 +++
17 2 files changed, 11 insertions(+), 2 deletions(-)
18
19 diff --git a/sys-devel/llvm-roc/llvm-roc-3.8.0.ebuild b/sys-devel/llvm-roc/llvm-roc-3.8.0.ebuild
20 index 50c927f78d3..8bcc3f8ce0e 100644
21 --- a/sys-devel/llvm-roc/llvm-roc-3.8.0.ebuild
22 +++ b/sys-devel/llvm-roc/llvm-roc-3.8.0.ebuild
23 @@ -12,7 +12,7 @@ SRC_URI="https://github.com/RadeonOpenCompute/llvm-project/archive/rocm-${PV}.ta
24 LICENSE="UoI-NCSA rc BSD public-domain"
25 SLOT="0"
26 KEYWORDS="~amd64"
27 -IUSE="debug"
28 +IUSE="debug runtime"
29
30 RDEPEND="virtual/cblas
31 dev-libs/libxml2
32 @@ -37,9 +37,15 @@ src_prepare() {
33 }
34
35 src_configure() {
36 + PROJECTS="clang;lld"
37 +
38 + if usex runtime; then
39 + PROJECTS+=";compiler-rt"
40 + fi
41 +
42 local mycmakeargs=(
43 -DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr/lib/llvm/roc"
44 - -DLLVM_ENABLE_PROJECTS="clang;lld"
45 + -DLLVM_ENABLE_PROJECTS="${PROJECTS}"
46 -DLLVM_TARGETS_TO_BUILD="AMDGPU;X86"
47 -DLLVM_BUILD_DOCS=NO
48 -DLLVM_ENABLE_OCAMLDOC=OFF
49
50 diff --git a/sys-devel/llvm-roc/metadata.xml b/sys-devel/llvm-roc/metadata.xml
51 index 303f9081b05..bf09a1db7df 100644
52 --- a/sys-devel/llvm-roc/metadata.xml
53 +++ b/sys-devel/llvm-roc/metadata.xml
54 @@ -8,4 +8,7 @@
55 <upstream>
56 <remote-id type="github">RadeonOpenCompute/llvm</remote-id>
57 </upstream>
58 + <use>
59 + <flag name="runtime">Builds the compiler runtime libraries.</flag>
60 + </use>
61 </pkgmetadata>