sci-libs/rocBLAS: fix compilation failure with incorrect clang selection

This switches compiles from hipcc to clang (no difference, just to remove warning),
and more importantly prepends llvm path (build scripts call clang++ in many places).

Closes: https://bugs.gentoo.org/949817
Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/42691
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sv. Lockal 2025-06-22 15:05:43 +00:00 committed by Sam James
parent 2acae82ecc
commit d5f466a71b
No known key found for this signature in database
GPG Key ID: 738409F520DF9190

View File

@ -64,10 +64,11 @@ src_prepare() {
}
src_configure() {
rocm_use_hipcc
llvm_prepend_path "${LLVM_SLOT}"
rocm_use_clang
# too many warnings
append-cxxflags -Wno-explicit-specialization-storage-class
append-cxxflags -Wno-explicit-specialization-storage-class -Wno-unused-value
local mycmakeargs=(
-DCMAKE_SKIP_RPATH=ON
@ -87,10 +88,7 @@ src_configure() {
if usex video_cards_amdgpu; then
mycmakeargs+=(
-DTensile_LOGIC="asm_full"
-DTensile_COMPILER="hipcc"
-DTensile_LIBRARY_FORMAT="msgpack"
-DTensile_CODE_OBJECT_VERSION="default"
-DTensile_ROOT="${EPREFIX}/usr/share/Tensile"
-DTensile_CPU_THREADS="$(makeopts_jobs)"
)