From aaf3388cfe8cf271aa925b72e4126ee2deade927 Mon Sep 17 00:00:00 2001 From: Michael Kuhn Date: Wed, 13 May 2020 14:53:49 +0200 Subject: [PATCH] esmf: fix build with gcc@10: (#16622) --- var/spack/repos/builtin/packages/esmf/package.py | 3 +++ 1 file changed, 3 insertions(+) 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 @@ 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 # #######