commit:     7aacc4249e16614c72dd994d458fb88ea93225ea
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Dec  7 16:46:44 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Dec  7 16:47:47 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7aacc424

sys-devel/clang-runtime: Add USE=offload

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 sys-devel/clang-runtime/clang-runtime-20.0.0.9999.ebuild        | 9 +++++++--
 sys-devel/clang-runtime/clang-runtime-20.0.0_pre20241207.ebuild | 9 +++++++--
 sys-devel/clang-runtime/metadata.xml                            | 1 +
 3 files changed, 15 insertions(+), 4 deletions(-)

diff --git a/sys-devel/clang-runtime/clang-runtime-20.0.0.9999.ebuild 
b/sys-devel/clang-runtime/clang-runtime-20.0.0.9999.ebuild
index 323c0b62c062..464c8c284740 100644
--- a/sys-devel/clang-runtime/clang-runtime-20.0.0.9999.ebuild
+++ b/sys-devel/clang-runtime/clang-runtime-20.0.0.9999.ebuild
@@ -10,7 +10,7 @@ HOMEPAGE="https://clang.llvm.org/";
 
 LICENSE="metapackage"
 SLOT="${PV%%.*}"
-IUSE="+compiler-rt libcxx openmp +sanitize"
+IUSE="+compiler-rt libcxx offload openmp +sanitize"
 REQUIRED_USE="sanitize? ( compiler-rt )"
 
 RDEPEND="
@@ -21,7 +21,12 @@ RDEPEND="
                )
        )
        libcxx? ( >=sys-libs/libcxx-${PV}[${MULTILIB_USEDEP}] )
-       openmp? ( >=sys-libs/libomp-${PV}[${MULTILIB_USEDEP}] )
+       openmp? (
+               >=sys-libs/libomp-${PV}[${MULTILIB_USEDEP}]
+               offload? (
+                       >=sys-libs/llvm-offload-${PV}
+               )
+       )
 "
 
 pkg_pretend() {

diff --git a/sys-devel/clang-runtime/clang-runtime-20.0.0_pre20241207.ebuild 
b/sys-devel/clang-runtime/clang-runtime-20.0.0_pre20241207.ebuild
index 323c0b62c062..464c8c284740 100644
--- a/sys-devel/clang-runtime/clang-runtime-20.0.0_pre20241207.ebuild
+++ b/sys-devel/clang-runtime/clang-runtime-20.0.0_pre20241207.ebuild
@@ -10,7 +10,7 @@ HOMEPAGE="https://clang.llvm.org/";
 
 LICENSE="metapackage"
 SLOT="${PV%%.*}"
-IUSE="+compiler-rt libcxx openmp +sanitize"
+IUSE="+compiler-rt libcxx offload openmp +sanitize"
 REQUIRED_USE="sanitize? ( compiler-rt )"
 
 RDEPEND="
@@ -21,7 +21,12 @@ RDEPEND="
                )
        )
        libcxx? ( >=sys-libs/libcxx-${PV}[${MULTILIB_USEDEP}] )
-       openmp? ( >=sys-libs/libomp-${PV}[${MULTILIB_USEDEP}] )
+       openmp? (
+               >=sys-libs/libomp-${PV}[${MULTILIB_USEDEP}]
+               offload? (
+                       >=sys-libs/llvm-offload-${PV}
+               )
+       )
 "
 
 pkg_pretend() {

diff --git a/sys-devel/clang-runtime/metadata.xml 
b/sys-devel/clang-runtime/metadata.xml
index 83929061543f..cb3fbf314195 100644
--- a/sys-devel/clang-runtime/metadata.xml
+++ b/sys-devel/clang-runtime/metadata.xml
@@ -7,6 +7,7 @@
        <use>
                <flag name="compiler-rt">Install 
<pkg>sys-libs/compiler-rt</pkg> for -rtlib=compiler-rt</flag>
                <flag name="libcxx">Install <pkg>sys-libs/libcxx</pkg> for 
-stdlib=libc++</flag>
+               <flag name="offload">Install <pkg>sys-libs/llvm-offload</pkg> 
for -fopenmp GPU offloading</flag>
                <flag name="openmp">Install <pkg>sys-libs/libomp</pkg> for 
-fopenmp support</flag>
                <flag name="sanitize">Enable compiler-rt sanitizer 
(-fsanitize*) support</flag>
        </use>

Reply via email to