summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/spack/spack/build_systems/intel.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/spack/spack/build_systems/intel.py b/lib/spack/spack/build_systems/intel.py
index 0936eef07c..858b4e37fb 100644
--- a/lib/spack/spack/build_systems/intel.py
+++ b/lib/spack/spack/build_systems/intel.py
@@ -935,6 +935,11 @@ class IntelPackage(PackageBase):
'MPIF90': compiler_wrapper_commands['MPIF90'],
})
+ # Ensure that the directory containing the compiler wrappers is in the
+ # PATH. Spack packages add `prefix.bin` to their dependents' paths,
+ # but because of the intel directory hierarchy that is insufficient.
+ spack_env.prepend_path('PATH', os.path.dirname(wrapper_vars['MPICC']))
+
for key, value in wrapper_vars.items():
spack_env.set(key, value)