Skip to content

Commit 5c6c3b4

Browse files
authored
fix oneapi modules (#38400)
1 parent 242854f commit 5c6c3b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/spack/spack/build_systems/oneapi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def setup_run_environment(self, env):
121121
$ source {prefix}/{component}/{version}/env/vars.sh
122122
"""
123123
# Only if environment modifications are desired (default is +envmods)
124-
if "+envmods" in self.spec:
124+
if "~envmods" not in self.spec:
125125
env.extend(
126126
EnvironmentModifications.from_sourcing_file(
127127
join_path(self.component_prefix, "env", "vars.sh")

0 commit comments

Comments
 (0)