summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/esmf/package.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/esmf/package.py b/var/spack/repos/builtin/packages/esmf/package.py
index d63af514ff..b533851228 100644
--- a/var/spack/repos/builtin/packages/esmf/package.py
+++ b/var/spack/repos/builtin/packages/esmf/package.py
@@ -146,6 +146,9 @@ class Esmf(MakefilePackage):
# 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 #
#######