mpitrampoline: fix wrong use of compiler.cc_names (#46038)

This commit is contained in:
Massimiliano Culpo 2024-08-30 07:50:09 +02:00 committed by GitHub
parent bd71ce5856
commit 82dea7e6ce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -84,9 +84,9 @@ def libs(self):
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"))