summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2024-08-30 07:50:09 +0200
committerGitHub <noreply@github.com>2024-08-30 07:50:09 +0200
commit82dea7e6ce9bd89eb52479dc635b46def4b2f542 (patch)
tree51a665f19c618a607668c128a942621cc0f0be4d
parentbd71ce5856a2d173305ea081a9f02e43347ee59b (diff)
downloadspack-82dea7e6ce9bd89eb52479dc635b46def4b2f542.tar.gz
spack-82dea7e6ce9bd89eb52479dc635b46def4b2f542.tar.bz2
spack-82dea7e6ce9bd89eb52479dc635b46def4b2f542.tar.xz
spack-82dea7e6ce9bd89eb52479dc635b46def4b2f542.zip
mpitrampoline: fix wrong use of compiler.cc_names (#46038)
-rw-r--r--var/spack/repos/builtin/packages/mpitrampoline/package.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/mpitrampoline/package.py b/var/spack/repos/builtin/packages/mpitrampoline/package.py
index 11cec39160..7d61086b95 100644
--- a/var/spack/repos/builtin/packages/mpitrampoline/package.py
+++ b/var/spack/repos/builtin/packages/mpitrampoline/package.py
@@ -84,9 +84,9 @@ class Mpitrampoline(CMakePackage):
def setup_run_environment(self, env):
# Because MPI implementations provide compilers, they have to add to
# their run environments the code to make the compilers available.
- env.set("MPITRAMPOLINE_CC", self.compiler.cc_names[0])
- env.set("MPITRAMPOLINE_CXX", self.compiler.cxx_names[0])
- env.set("MPITRAMPOLINE_FC", self.compiler.fc_names[0])
+ env.set("MPITRAMPOLINE_CC", self.compiler.cc)
+ env.set("MPITRAMPOLINE_CXX", self.compiler.cxx)
+ env.set("MPITRAMPOLINE_FC", self.compiler.fc)
env.set("MPICC", join_path(self.prefix.bin, "mpicc"))
env.set("MPICXX", join_path(self.prefix.bin, "mpicxx"))
env.set("MPIF77", join_path(self.prefix.bin, "mpifc"))