commit: 8feb5916492e4f235a2d42d4dcc785f348ba5b4f
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 23 13:35:57 2023 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Feb 23 13:37:53 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8feb5916
sys-devel/clang: Fix automagic dep on HSA runtime
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
sys-devel/clang/clang-16.0.0.9999.ebuild | 3 +++
sys-devel/clang/clang-17.0.0.9999.ebuild | 3 +++
2 files changed, 6 insertions(+)
diff --git a/sys-devel/clang/clang-16.0.0.9999.ebuild
b/sys-devel/clang/clang-16.0.0.9999.ebuild
index 6a4c9a3aefe0..4bc824e6a52a 100644
--- a/sys-devel/clang/clang-16.0.0.9999.ebuild
+++ b/sys-devel/clang/clang-16.0.0.9999.ebuild
@@ -277,6 +277,9 @@ multilib_src_configure() {
# disable using CUDA to autodetect GPU, just build for all
-DCMAKE_DISABLE_FIND_PACKAGE_CUDA=ON
+ # disable linking to HSA to avoid automagic dep,
+ # load it dynamically instead
+ -DCMAKE_DISABLE_FIND_PACKAGE_hsa-runtime64=ON
-DCLANG_DEFAULT_PIE_ON_LINUX=$(usex pie)
diff --git a/sys-devel/clang/clang-17.0.0.9999.ebuild
b/sys-devel/clang/clang-17.0.0.9999.ebuild
index 6a4c9a3aefe0..4bc824e6a52a 100644
--- a/sys-devel/clang/clang-17.0.0.9999.ebuild
+++ b/sys-devel/clang/clang-17.0.0.9999.ebuild
@@ -277,6 +277,9 @@ multilib_src_configure() {
# disable using CUDA to autodetect GPU, just build for all
-DCMAKE_DISABLE_FIND_PACKAGE_CUDA=ON
+ # disable linking to HSA to avoid automagic dep,
+ # load it dynamically instead
+ -DCMAKE_DISABLE_FIND_PACKAGE_hsa-runtime64=ON
-DCLANG_DEFAULT_PIE_ON_LINUX=$(usex pie)