diff options
author | wspear <wjspear@gmail.com> | 2024-11-05 12:08:10 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-05 13:08:10 -0700 |
commit | c601692bc794943b08ac108ce44d6f3428bb565a (patch) | |
tree | 85f8cbc37956e83ccf5dd2bd4d0395296ab6aeed | |
parent | 2b9c6790f22db8161f1dca9a37bdf5d68ab90482 (diff) | |
download | spack-c601692bc794943b08ac108ce44d6f3428bb565a.tar.gz spack-c601692bc794943b08ac108ce44d6f3428bb565a.tar.bz2 spack-c601692bc794943b08ac108ce44d6f3428bb565a.tar.xz spack-c601692bc794943b08ac108ce44d6f3428bb565a.zip |
Fix filter_compiler_wrappers with mpi (#47448)
-rw-r--r-- | var/spack/repos/builtin/packages/tau/package.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/tau/package.py b/var/spack/repos/builtin/packages/tau/package.py index 94d939c03f..b2bcac2891 100644 --- a/var/spack/repos/builtin/packages/tau/package.py +++ b/var/spack/repos/builtin/packages/tau/package.py @@ -427,8 +427,14 @@ class Tau(Package): # Link arch-specific directories into prefix since there is # only one arch per prefix the way spack installs. self.link_tau_arch_dirs() - # TAU may capture Spack's internal compiler wrapper. Replace - # it with the correct compiler. + # TAU may capture Spack's internal compiler wrapper. Fixed + # by filter_compiler_wrappers. Switch back the environment + # variables the filter uses. + if "+mpi" in spec: + env["CC"] = spack_cc + env["CXX"] = spack_cxx + env["FC"] = spack_fc + env["F77"] = spack_f77 def link_tau_arch_dirs(self): for subdir in os.listdir(self.prefix): |