summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTamara Dahlgren <35777542+tldahlgren@users.noreply.github.com>2024-10-21 14:15:33 -0700
committerGitHub <noreply@github.com>2024-10-21 14:15:33 -0700
commitd9e8c5f13e2ea773e5555307ded8c98456442bfc (patch)
tree60ddb904d50151f0822ed9c8a4f817b9217a5413
parent275d1d88f40c348c1eaf07f8941592b2fa373ce6 (diff)
downloadspack-d9e8c5f13e2ea773e5555307ded8c98456442bfc.tar.gz
spack-d9e8c5f13e2ea773e5555307ded8c98456442bfc.tar.bz2
spack-d9e8c5f13e2ea773e5555307ded8c98456442bfc.tar.xz
spack-d9e8c5f13e2ea773e5555307ded8c98456442bfc.zip
hip stand-alone test: simplify setting CMAKE_PREFIX_PATH (#46856)
-rw-r--r--var/spack/repos/builtin/packages/hip/package.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/var/spack/repos/builtin/packages/hip/package.py b/var/spack/repos/builtin/packages/hip/package.py
index f0235f1aea..91dc94d33c 100644
--- a/var/spack/repos/builtin/packages/hip/package.py
+++ b/var/spack/repos/builtin/packages/hip/package.py
@@ -638,14 +638,7 @@ class Hip(CMakePackage):
test_dir = join_path(self.test_suite.current_test_cache_dir, self.test_src_dir_old)
elif self.spec.satisfies("@5.6:"):
test_dir = join_path(self.test_suite.current_test_cache_dir, self.test_src_dir)
- prefixes = ";".join(
- [
- self.spec["hip"].prefix,
- self.spec["llvm-amdgpu"].prefix,
- self.spec["comgr"].prefix,
- self.spec["hsa-rocr-dev"].prefix,
- ]
- )
+ prefixes = ";".join(spack.build_environment.get_cmake_prefix_path(self))
cc_options = ["-DCMAKE_PREFIX_PATH=" + prefixes, ".."]
amdclang_path = join_path(self.spec["llvm-amdgpu"].prefix, "bin", "amdclang++")