Fix spack compiler wrappers in ESMF's esmf.mk on Cray when using cc, CC, ftn (#41640)

This commit is contained in:
Dom Heinzeller 2023-12-14 01:42:34 -07:00 committed by GitHub
parent 16d1ed3591
commit a972314fa6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -136,6 +136,14 @@ class Esmf(MakefilePackage):
# https://github.com/spack/spack/issues/35957
patch("esmf_cpp_info.patch")
# This is strictly required on Cray systems that use
# the Cray compiler wrappers, where we need to swap
# out the spack compiler wrappers in esmf.mk with the
# Cray wrappers. It doesn't hurt/have any effect on
# other systems where the logic in setup_build_environment
# below sets the compilers to the MPI wrappers.
filter_compiler_wrappers("esmf.mk", relative_root="lib")
# Make script from mvapich2.patch executable
@when("@:7.0")
@run_before("build")