summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/hipsycl/package.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/hipsycl/package.py b/var/spack/repos/builtin/packages/hipsycl/package.py
index 887d9f049b..1cc18e1c2d 100644
--- a/var/spack/repos/builtin/packages/hipsycl/package.py
+++ b/var/spack/repos/builtin/packages/hipsycl/package.py
@@ -132,7 +132,9 @@ class Hipsycl(CMakePackage):
# the libc++.so and libc++abi.so dyn linked to the sycl
# ptx backend
rpaths = set()
- so_paths = filesystem.find(self.spec["llvm"].prefix, "libc++.so")
+ so_paths = filesystem.find_libraries(
+ "libc++", self.spec["llvm"].prefix, shared=True, recursive=True
+ )
if len(so_paths) != 1:
raise InstallError(
"concretized llvm dependency must provide a "
@@ -140,11 +142,13 @@ class Hipsycl(CMakePackage):
"found: {0}".format(so_paths)
)
rpaths.add(path.dirname(so_paths[0]))
- so_paths = filesystem.find(self.spec["llvm"].prefix, "libc++abi.so")
+ so_paths = filesystem.find_libraries(
+ "libc++abi", self.spec["llvm"].prefix, shared=True, recursive=True
+ )
if len(so_paths) != 1:
raise InstallError(
"concretized llvm dependency must provide a "
- "unique directory containing libc++abi.so, "
+ "unique directory containing libc++abi, "
"found: {0}".format(so_paths)
)
rpaths.add(path.dirname(so_paths[0]))