* [gentoo-dev] [PATCH] rocm.eclass: dev-util/hip as an exception, not to expose USE flags.
@ 2023-11-20 4:35 heroxbd
0 siblings, 0 replies; only message in thread
From: heroxbd @ 2023-11-20 4:35 UTC (permalink / raw)
To: gentoo-dev; +Cc: Benda Xu
From: Benda Xu <heroxbd@gentoo.org>
Signed-off-by: Benda Xu <heroxbd@gentoo.org>
---
eclass/rocm.eclass | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/eclass/rocm.eclass b/eclass/rocm.eclass
index b78dfea1cc31..04f321a83c8c 100644
--- a/eclass/rocm.eclass
+++ b/eclass/rocm.eclass
@@ -176,9 +176,12 @@ _rocm_set_globals() {
local optflags=${allflags[@]/%/(-)?}
ROCM_USEDEP=${optflags// /,}
}
-_rocm_set_globals
-unset -f _rocm_set_globals
+# dev-util/hip uses checkgpu but does not need the USE flags.
+if [[ ${CATEGORY}/${PN} != dev-util/hip ]]; then
+ _rocm_set_globals
+ unset -f _rocm_set_globals
+fi
# @FUNCTION: get_amdgpu_flags
# @USAGE: get_amdgpu_flags
--
2.41.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2023-11-20 4:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-20 4:35 [gentoo-dev] [PATCH] rocm.eclass: dev-util/hip as an exception, not to expose USE flags heroxbd
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox