TAU: Respect ~fortran for +mpi (#40617)

This commit is contained in:
wspear
2023-10-19 22:24:17 -07:00
committed by GitHub
parent 0019faaa17
commit c9e5173bbd

View File

@@ -261,8 +261,9 @@ def install(self, spec, prefix):
if "+mpi" in spec:
env["CC"] = spec["mpi"].mpicc
env["CXX"] = spec["mpi"].mpicxx
env["F77"] = spec["mpi"].mpif77
env["FC"] = spec["mpi"].mpifc
if "+fortran" in spec:
env["F77"] = spec["mpi"].mpif77
env["FC"] = spec["mpi"].mpifc
options.append("-mpiinc=%s" % spec["mpi"].prefix.include)
options.append("-mpilib=%s" % spec["mpi"].prefix.lib)