summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/tau/package.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/tau/package.py b/var/spack/repos/builtin/packages/tau/package.py
index d34b65d848..b61ab5753c 100644
--- a/var/spack/repos/builtin/packages/tau/package.py
+++ b/var/spack/repos/builtin/packages/tau/package.py
@@ -261,8 +261,9 @@ class Tau(Package):
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)