summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/spack/spack/build_systems/cached_cmake.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/spack/spack/build_systems/cached_cmake.py b/lib/spack/spack/build_systems/cached_cmake.py
index e142d76827..48c714f31a 100644
--- a/lib/spack/spack/build_systems/cached_cmake.py
+++ b/lib/spack/spack/build_systems/cached_cmake.py
@@ -139,11 +139,6 @@ class CachedCMakeBuilder(CMakeBuilder):
"endif()\n",
]
- # We defined hipcc as top-level compiler for packages when +rocm.
- # This avoid problems coming from rocm flags being applied to another compiler.
- if "+rocm" in spec:
- entries.insert(0, cmake_cache_path("CMAKE_CXX_COMPILER", self.spec["hip"].hipcc))
-
flags = spec.compiler_flags
# use global spack compiler flags