summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorMichael Kuhn <michael.kuhn@informatik.uni-hamburg.de>2020-05-13 14:53:49 +0200
committerGitHub <noreply@github.com>2020-05-13 14:53:49 +0200
commitaaf3388cfe8cf271aa925b72e4126ee2deade927 (patch)
treefec3540f7351193848da65f88dc3ff3db3d3cddc /var
parent701fc1fdb15253f771aeec330a66b992d8c55dce (diff)
downloadspack-aaf3388cfe8cf271aa925b72e4126ee2deade927.tar.gz
spack-aaf3388cfe8cf271aa925b72e4126ee2deade927.tar.bz2
spack-aaf3388cfe8cf271aa925b72e4126ee2deade927.tar.xz
spack-aaf3388cfe8cf271aa925b72e4126ee2deade927.zip
esmf: fix build with gcc@10: (#16622)
Diffstat (limited to 'var')
-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 #
#######