summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/ascent/package.py5
-rw-r--r--var/spack/repos/builtin/packages/conduit/package.py5
2 files changed, 8 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/ascent/package.py b/var/spack/repos/builtin/packages/ascent/package.py
index 593c0f2596..f5f5390820 100644
--- a/var/spack/repos/builtin/packages/ascent/package.py
+++ b/var/spack/repos/builtin/packages/ascent/package.py
@@ -303,7 +303,10 @@ class Ascent(CMakePackage, CudaPackage):
#######################
c_compiler = env["SPACK_CC"]
cpp_compiler = env["SPACK_CXX"]
- f_compiler = env["SPACK_FC"]
+ if "+fortran" in spec:
+ f_compiler = env["SPACK_FC"]
+ else:
+ f_compiler = None
#######################################################################
# Directly fetch the names of the actual compilers to create a
diff --git a/var/spack/repos/builtin/packages/conduit/package.py b/var/spack/repos/builtin/packages/conduit/package.py
index dc824b8c92..ce6cee87ac 100644
--- a/var/spack/repos/builtin/packages/conduit/package.py
+++ b/var/spack/repos/builtin/packages/conduit/package.py
@@ -287,7 +287,10 @@ class Conduit(CMakePackage):
#######################
c_compiler = env["SPACK_CC"]
cpp_compiler = env["SPACK_CXX"]
- f_compiler = env["SPACK_FC"]
+ if "+fortran" in spec:
+ f_compiler = env["SPACK_FC"]
+ else:
+ f_compiler = None
#######################################################################
# Directly fetch the names of the actual compilers to create a