diff options
-rw-r--r-- | sys-devel/llvm-roc/llvm-roc-3.8.0.ebuild | 10 | ||||
-rw-r--r-- | sys-devel/llvm-roc/metadata.xml | 3 |
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> |