summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilfried Holzke <gentoo@holzke.net>2020-09-20 13:16:42 +0200
committerCraig Andrews <candrews@gentoo.org>2020-09-27 09:35:23 -0400
commit2679b0694f2749da161c6ec9889d327fad90c9a3 (patch)
treeaeeaac7a08a9506db10c9416e4e59e714061815e /sys-devel/llvm-roc
parentnet-analyzer/labrea: Move INSTALL out of the way (diff)
downloadgentoo-2679b0694f2749da161c6ec9889d327fad90c9a3.tar.gz
gentoo-2679b0694f2749da161c6ec9889d327fad90c9a3.tar.bz2
gentoo-2679b0694f2749da161c6ec9889d327fad90c9a3.zip
sys-devel/llvm-roc: Use flag to optionaly build runtime libraries
Signed-off-by: Wilfried Holzke <gentoo@holzke.net> Package-Manager: Portage-2.3.103, Repoman-2.3.23 Closes: https://github.com/gentoo/gentoo/pull/17611 Signed-off-by: Craig Andrews <candrews@gentoo.org>
Diffstat (limited to 'sys-devel/llvm-roc')
-rw-r--r--sys-devel/llvm-roc/llvm-roc-3.8.0.ebuild10
-rw-r--r--sys-devel/llvm-roc/metadata.xml3
2 files changed, 11 insertions, 2 deletions
diff --git a/sys-devel/llvm-roc/llvm-roc-3.8.0.ebuild b/sys-devel/llvm-roc/llvm-roc-3.8.0.ebuild
index 50c927f78d37..8bcc3f8ce0eb 100644
--- a/sys-devel/llvm-roc/llvm-roc-3.8.0.ebuild
+++ b/sys-devel/llvm-roc/llvm-roc-3.8.0.ebuild
@@ -12,7 +12,7 @@ SRC_URI="https://github.com/RadeonOpenCompute/llvm-project/archive/rocm-${PV}.ta
LICENSE="UoI-NCSA rc BSD public-domain"
SLOT="0"
KEYWORDS="~amd64"
-IUSE="debug"
+IUSE="debug runtime"
RDEPEND="virtual/cblas
dev-libs/libxml2
@@ -37,9 +37,15 @@ src_prepare() {
}
src_configure() {
+ PROJECTS="clang;lld"
+
+ if usex runtime; then
+ PROJECTS+=";compiler-rt"
+ fi
+
local mycmakeargs=(
-DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr/lib/llvm/roc"
- -DLLVM_ENABLE_PROJECTS="clang;lld"
+ -DLLVM_ENABLE_PROJECTS="${PROJECTS}"
-DLLVM_TARGETS_TO_BUILD="AMDGPU;X86"
-DLLVM_BUILD_DOCS=NO
-DLLVM_ENABLE_OCAMLDOC=OFF
diff --git a/sys-devel/llvm-roc/metadata.xml b/sys-devel/llvm-roc/metadata.xml
index 303f9081b054..bf09a1db7df6 100644
--- a/sys-devel/llvm-roc/metadata.xml
+++ b/sys-devel/llvm-roc/metadata.xml
@@ -8,4 +8,7 @@
<upstream>
<remote-id type="github">RadeonOpenCompute/llvm</remote-id>
</upstream>
+ <use>
+ <flag name="runtime">Builds the compiler runtime libraries.</flag>
+ </use>
</pkgmetadata>