sci-misc/llama-cpp: restore rocm_use_hipcc

rocm_use_hipcc strips the unsupported cflags when calling hipcc, such as
-flto.

Closes: https://bugs.gentoo.org/983114
Signed-off-by: WGH <wgh@torlan.ru>
Signed-off-by: Gilles Dartiguelongue <gilles.dartiguelongue@esiee.org>
This commit is contained in:
WGH authored and Gilles Dartiguelongue committed 2026-09-23 18:15:52 +02:00
1 parent 7236bfb19f
commit 48959cb24a
2 files changed
+2 -4

No files matched your search

+1 -2
View File
@@ -222,8 +222,7 @@ src_configure() {
fi
if use rocm; then
# See ${S}/docs/build.md#hip
export HIPCXX="$(hipconfig -l)/clang" HIP_PATH="$(hipconfig -p)"
rocm_use_hipcc
mycmakeargs+=(
-DGGML_HIP=ON
-DGPU_TARGETS=$(get_amdgpu_flags)
+1 -2
View File
@@ -222,8 +222,7 @@ src_configure() {
fi
if use rocm; then
# See ${S}/docs/build.md#hip
export HIPCXX="$(hipconfig -l)/clang" HIP_PATH="$(hipconfig -p)"
rocm_use_hipcc
mycmakeargs+=(
-DGGML_HIP=ON
-DGPU_TARGETS=$(get_amdgpu_flags)