esmf: fix build with gcc@10: (#16622)

This commit is contained in:
Michael Kuhn 2020-05-13 14:53:49 +02:00 committed by GitHub
parent 701fc1fdb1
commit aaf3388cfe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -146,6 +146,9 @@ def edit(self, spec, prefix):
# Build an optimized version of the library.
os.environ['ESMF_BOPT'] = 'O'
if self.spec.satisfies('%gcc@10:'):
os.environ['ESMF_F90COMPILEOPTS'] = '-fallow-argument-mismatch'
#######
# MPI #
#######