intel: Add mpicc wrapper bindir to dependent env (#12132)
This commit is contained in:
parent
d1752d8640
commit
f78fc30032
@ -935,6 +935,11 @@ def mpi_setup_dependent_environment(
|
||||
'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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user