Skip to content
Snippets Groups Projects
Unverified Commit 518572e7 authored by Tara Drwenski's avatar Tara Drwenski Committed by GitHub
Browse files

Use gcc toolchain when using hip and gcc host compiler (#48632)

parent 6f4ac31a
Branches
Tags
No related merge requests found
......@@ -293,6 +293,13 @@ def initconfig_hardware_entries(self):
entries.append(cmake_cache_string("AMDGPU_TARGETS", arch_str))
entries.append(cmake_cache_string("GPU_TARGETS", arch_str))
if spec.satisfies("%gcc"):
entries.append(
cmake_cache_string(
"CMAKE_HIP_FLAGS", f"--gcc-toolchain={self.pkg.compiler.prefix}"
)
)
return entries
def std_initconfig_entries(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment