commit:     f99a1c55467dd0eb42265ce1f9674be20066f327
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Mar 25 07:18:02 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Mar 25 08:15:31 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f99a1c55

llvm-core/llvm: Disable automagic deps on hsa & CUDA runtimes

Closes: https://bugs.gentoo.org/952005
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 llvm-core/llvm/llvm-21.0.0.9999.ebuild        | 7 ++++++-
 llvm-core/llvm/llvm-21.0.0_pre20250322.ebuild | 7 ++++++-
 2 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/llvm-core/llvm/llvm-21.0.0.9999.ebuild 
b/llvm-core/llvm/llvm-21.0.0.9999.ebuild
index b08fdec3377a..3ca0c5392316 100644
--- a/llvm-core/llvm/llvm-21.0.0.9999.ebuild
+++ b/llvm-core/llvm/llvm-21.0.0.9999.ebuild
@@ -251,7 +251,6 @@ get_distribution_components() {
                        UnicodeNameMappingGenerator
 
                        # tools
-                       amdhsa-loader
                        bugpoint
                        dsymutil
                        llc
@@ -425,6 +424,12 @@ multilib_src_configure() {
 
                # disable OCaml bindings (now in dev-ml/llvm)
                -DOCAMLFIND=NO
+
+               # disable automagic dependencies on hsa/CUDA runtimes
+               # these are only used to run tests on GPU and we don't care
+               # about that
+               -DCMAKE_DISABLE_FIND_PACKAGE_hsa-runtime64=ON
+               -DCMAKE_DISABLE_FIND_PACKAGE_CUDAToolkit=ON
        )
 
        local suffix=

diff --git a/llvm-core/llvm/llvm-21.0.0_pre20250322.ebuild 
b/llvm-core/llvm/llvm-21.0.0_pre20250322.ebuild
index b08fdec3377a..3ca0c5392316 100644
--- a/llvm-core/llvm/llvm-21.0.0_pre20250322.ebuild
+++ b/llvm-core/llvm/llvm-21.0.0_pre20250322.ebuild
@@ -251,7 +251,6 @@ get_distribution_components() {
                        UnicodeNameMappingGenerator
 
                        # tools
-                       amdhsa-loader
                        bugpoint
                        dsymutil
                        llc
@@ -425,6 +424,12 @@ multilib_src_configure() {
 
                # disable OCaml bindings (now in dev-ml/llvm)
                -DOCAMLFIND=NO
+
+               # disable automagic dependencies on hsa/CUDA runtimes
+               # these are only used to run tests on GPU and we don't care
+               # about that
+               -DCMAKE_DISABLE_FIND_PACKAGE_hsa-runtime64=ON
+               -DCMAKE_DISABLE_FIND_PACKAGE_CUDAToolkit=ON
        )
 
        local suffix=

Reply via email to