diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/ascent/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/ascent/package.py | 5 |
1 files changed, 4 insertions, 1 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 |