app-accessibility/whisper-cpp: restore rocm_use_hipcc

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

Refs: https://bugs.gentoo.org/983114
Signed-off-by: Gilles Dartiguelongue <gilles.dartiguelongue@esiee.org>
This commit is contained in:
Gilles Dartiguelongue committed 2026-09-23 20:01:05 +02:00
1 parent 06a6da8a57
commit 7484d883bd
2 files changed
+2 -4

No files matched your search

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