Skip to content

Commit c725fba

Browse files
authored
oneapi build system: fix openmp_libs (spack#1645)
1 parent c67b737 commit c725fba

File tree

1 file changed

+3
-4
lines changed
  • repos/spack_repo/builtin/build_systems

1 file changed

+3
-4
lines changed

repos/spack_repo/builtin/build_systems/oneapi.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -226,10 +226,9 @@ def openmp_libs(self):
226226
)
227227

228228
# query the compiler for the library path
229-
with self.compiler.compiler_environment():
230-
omp_lib_path = Executable(self.compiler.cc)(
231-
"--print-file-name", f"{libname}.{shared_library_suffix(self.spec)}", output=str
232-
).strip()
229+
omp_lib_path = Executable(self.compiler.cc)(
230+
"--print-file-name", f"{libname}.{shared_library_suffix(self.spec)}", output=str
231+
).strip()
233232

234233
# Newer versions of clang do not give the full path to libomp. If that's
235234
# the case, look in a path relative to the compiler where libomp is

0 commit comments

Comments
 (0)