commit: d49e7c8127258017ef5c3e8c19a26a46027c9f31 Author: Sv. Lockal <lockalsash <AT> gmail <DOT> com> AuthorDate: Tue Jul 8 09:14:06 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Tue Jul 8 19:31:44 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d49e7c81
sci-libs/hipBLASLt: fix compiler validation Closes: https://bugs.gentoo.org/959702 Signed-off-by: Sv. Lockal <lockalsash <AT> gmail.com> Part-of: https://github.com/gentoo/gentoo/pull/42930 Closes: https://github.com/gentoo/gentoo/pull/42930 Signed-off-by: Sam James <sam <AT> gentoo.org> sci-libs/hipBLASLt/hipBLASLt-6.4.1.ebuild | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sci-libs/hipBLASLt/hipBLASLt-6.4.1.ebuild b/sci-libs/hipBLASLt/hipBLASLt-6.4.1.ebuild index b5d21c519d4f..a2ce9ce18ae0 100644 --- a/sci-libs/hipBLASLt/hipBLASLt-6.4.1.ebuild +++ b/sci-libs/hipBLASLt/hipBLASLt-6.4.1.ebuild @@ -90,11 +90,14 @@ src_prepare() { local shebangs=($(grep -rl "#!/usr/bin/env python3" tensilelite/Tensile || die)) python_fix_shebang -q ${shebangs[*]} - sed -e "s:\${rocm_path}/bin/amdclang++:$(get_llvm_prefix)/bin/clang++:" \ + rocm_use_clang + sed -e "s:\${rocm_path}/bin/amdclang++:${CXX}:" \ -i library/src/amd_detail/rocblaslt/src/kernels/compile_code_object.sh \ -i tensilelite/Tensile/Ops/gen_assembly.sh || die - sed 's/amdclang/clang/g' -i tensilelite/Tensile/Utilities/Toolchain.py || die + # Fix compiler validation (just a validation) + sed "s/amdclang/$(basename "$CC")/g" \ + -i tensilelite/Tensile/Utilities/Toolchain.py || die cmake_src_prepare }
