diff options
author | Greg Becker <becker33@llnl.gov> | 2019-07-29 14:04:15 -0500 |
---|---|---|
committer | Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.com> | 2019-07-29 12:04:15 -0700 |
commit | f78fc30032f462fda76c6c6337c23455366ac584 (patch) | |
tree | a8b0a7ab70a7002dd0a38cbb704be5de123ff4af /lib | |
parent | d1752d86406f64bef1faba0bb1c8ed2cfe125365 (diff) | |
download | spack-f78fc30032f462fda76c6c6337c23455366ac584.tar.gz spack-f78fc30032f462fda76c6c6337c23455366ac584.tar.bz2 spack-f78fc30032f462fda76c6c6337c23455366ac584.tar.xz spack-f78fc30032f462fda76c6c6337c23455366ac584.zip |
intel: Add mpicc wrapper bindir to dependent env (#12132)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/build_systems/intel.py | 5 |
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) |