commit:     cc3e60d17c11df4484cd99da9520d7128697599a
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 24 12:34:08 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Dec 24 12:35:17 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc3e60d1

llvm-core/clang-runtime: Add USE=offload to 19.1.6-r1

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

 .../clang-runtime/clang-runtime-19.1.6-r1.ebuild   | 45 ++++++++++++++++++++++
 profiles/arch/amd64/package.use.mask               |  4 ++
 profiles/arch/arm64/package.use.mask               |  4 ++
 profiles/arch/base/package.use.mask                |  4 ++
 profiles/arch/powerpc/ppc64/package.use.mask       |  4 ++
 5 files changed, 61 insertions(+)

diff --git a/llvm-core/clang-runtime/clang-runtime-19.1.6-r1.ebuild 
b/llvm-core/clang-runtime/clang-runtime-19.1.6-r1.ebuild
new file mode 100644
index 000000000000..f18c95266d96
--- /dev/null
+++ b/llvm-core/clang-runtime/clang-runtime-19.1.6-r1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit multilib-build toolchain-funcs
+
+DESCRIPTION="Meta-ebuild for clang runtime libraries"
+HOMEPAGE="https://clang.llvm.org/";
+
+LICENSE="metapackage"
+SLOT="${PV%%.*}"
+KEYWORDS="~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 
~amd64-linux ~arm64-macos ~ppc-macos ~x64-macos"
+IUSE="+compiler-rt libcxx offload openmp +sanitize"
+REQUIRED_USE="sanitize? ( compiler-rt )"
+
+RDEPEND="
+       compiler-rt? (
+               
~llvm-runtimes/compiler-rt-${PV}:${SLOT}[abi_x86_32(+)?,abi_x86_64(+)?]
+               sanitize? (
+                       
~llvm-runtimes/compiler-rt-sanitizers-${PV}:${SLOT}[abi_x86_32(+)?,abi_x86_64(+)?]
+               )
+       )
+       libcxx? ( >=llvm-runtimes/libcxx-${PV}[${MULTILIB_USEDEP}] )
+       openmp? (
+               >=llvm-runtimes/openmp-${PV}[${MULTILIB_USEDEP}]
+               offload? (
+                       >=llvm-runtimes/offload-${PV}
+               )
+       )
+"
+
+pkg_pretend() {
+       if tc-is-clang; then
+               ewarn "You seem to be using clang as a system compiler.  As of 
clang-16,"
+               ewarn "upstream has turned a few warnings that commonly occur 
during"
+               ewarn "configure script runs into errors by default.  This 
causes some"
+               ewarn "configure tests to start failing, sometimes resulting in 
silent"
+               ewarn "breakage, missing functionality or runtime misbehavior.  
It is"
+               ewarn "not yet clear whether the change will remain or be 
reverted."
+               ewarn
+               ewarn "For more information, please see:"
+               ewarn 
"https://discourse.llvm.org/t/configure-script-breakage-with-the-new-werror-implicit-function-declaration/65213";
+       fi
+}

diff --git a/profiles/arch/amd64/package.use.mask 
b/profiles/arch/amd64/package.use.mask
index 531c147adad8..1e1ebfb22b46 100644
--- a/profiles/arch/amd64/package.use.mask
+++ b/profiles/arch/amd64/package.use.mask
@@ -17,6 +17,10 @@
 
 #--- END OF EXAMPLES ---
 
+# Michał Górny <[email protected]> (2024-12-24)
+# OpenMP offloading is supported on 64-bit architectures only.
+llvm-core/clang-runtime -offload
+
 # Alfred Wingate <[email protected]> <2024-12-16)
 # Only available on amd64.
 media-video/handbrake -qsv

diff --git a/profiles/arch/arm64/package.use.mask 
b/profiles/arch/arm64/package.use.mask
index 1f83ab386261..85275e124cb8 100644
--- a/profiles/arch/arm64/package.use.mask
+++ b/profiles/arch/arm64/package.use.mask
@@ -1,6 +1,10 @@
 # Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
+# Michał Górny <[email protected]> (2024-12-24)
+# OpenMP offloading is supported on 64-bit architectures only.
+llvm-core/clang-runtime -offload
+
 # Nowa Ammerlaan <[email protected]> (2024-12-20)
 # qtremoteobjects and qthttpserver not yet keyworded here
 dev-python/pyside6 httpserver remoteobjects

diff --git a/profiles/arch/base/package.use.mask 
b/profiles/arch/base/package.use.mask
index 5a7c86a58b8b..84edf90cc72a 100644
--- a/profiles/arch/base/package.use.mask
+++ b/profiles/arch/base/package.use.mask
@@ -1,6 +1,10 @@
 # Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
+# Michał Górny <[email protected]> (2024-12-24)
+# OpenMP offloading is supported on 64-bit architectures only.
+llvm-core/clang-runtime offload
+
 # Viorel Munteanu <[email protected]> (2024-11-30)
 # Missing keywords on dev-python/asyncssh.
 net-misc/dropbear test-async

diff --git a/profiles/arch/powerpc/ppc64/package.use.mask 
b/profiles/arch/powerpc/ppc64/package.use.mask
index ffb12a431e7a..a0a349ea0751 100644
--- a/profiles/arch/powerpc/ppc64/package.use.mask
+++ b/profiles/arch/powerpc/ppc64/package.use.mask
@@ -1,6 +1,10 @@
 # Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
+# Michał Górny <[email protected]> (2024-12-24)
+# OpenMP offloading is supported on 64-bit architectures only.
+llvm-core/clang-runtime -offload
+
 # Sam James <[email protected]> (2024-12-17)
 # dev-lang/ada-bootstrap exists here
 >=sys-devel/gcc-14 -ada

Reply via email to