Ascent/Conduit: re-add fortran compiler that was mistakenly removed (#30351)
This commit is contained in:
parent
3e863848f8
commit
2e9da47a2d
2 changed files with 5 additions and 0 deletions
|
@ -303,6 +303,7 @@ def hostconfig(self):
|
||||||
#######################
|
#######################
|
||||||
c_compiler = env["SPACK_CC"]
|
c_compiler = env["SPACK_CC"]
|
||||||
cpp_compiler = env["SPACK_CXX"]
|
cpp_compiler = env["SPACK_CXX"]
|
||||||
|
f_compiler = env["SPACK_FC"]
|
||||||
|
|
||||||
#######################################################################
|
#######################################################################
|
||||||
# Directly fetch the names of the actual compilers to create a
|
# Directly fetch the names of the actual compilers to create a
|
||||||
|
@ -354,6 +355,8 @@ def hostconfig(self):
|
||||||
cfg.write("# fortran compiler used by spack\n")
|
cfg.write("# fortran compiler used by spack\n")
|
||||||
if "+fortran" in spec:
|
if "+fortran" in spec:
|
||||||
cfg.write(cmake_cache_entry("ENABLE_FORTRAN", "ON"))
|
cfg.write(cmake_cache_entry("ENABLE_FORTRAN", "ON"))
|
||||||
|
cfg.write(cmake_cache_entry("CMAKE_Fortran_COMPILER",
|
||||||
|
f_compiler))
|
||||||
else:
|
else:
|
||||||
cfg.write(cmake_cache_entry("ENABLE_FORTRAN", "OFF"))
|
cfg.write(cmake_cache_entry("ENABLE_FORTRAN", "OFF"))
|
||||||
|
|
||||||
|
|
|
@ -337,6 +337,8 @@ def hostconfig(self):
|
||||||
cfg.write("# fortran compiler used by spack\n")
|
cfg.write("# fortran compiler used by spack\n")
|
||||||
if "+fortran" in spec:
|
if "+fortran" in spec:
|
||||||
cfg.write(cmake_cache_entry("ENABLE_FORTRAN", "ON"))
|
cfg.write(cmake_cache_entry("ENABLE_FORTRAN", "ON"))
|
||||||
|
cfg.write(cmake_cache_entry("CMAKE_Fortran_COMPILER",
|
||||||
|
f_compiler))
|
||||||
else:
|
else:
|
||||||
cfg.write(cmake_cache_entry("ENABLE_FORTRAN", "OFF"))
|
cfg.write(cmake_cache_entry("ENABLE_FORTRAN", "OFF"))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue