intel: Add mpicc wrapper bindir to dependent env (#12132)

This commit is contained in:
Greg Becker 2019-07-29 14:04:15 -05:00 committed by Tamara Dahlgren
parent d1752d8640
commit f78fc30032

View File

@ -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)