summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Kuhn <michael.kuhn@informatik.uni-hamburg.de>2020-05-14 04:46:13 +0200
committerGitHub <noreply@github.com>2020-05-13 19:46:13 -0700
commit20b3e418317644fc17a8787cb2bda52fdb77a24a (patch)
tree189918cc2627bb39d59295855498cbd89b64a214
parent48a35409e083ea7a9f04594a7b1802136df21d18 (diff)
downloadspack-20b3e418317644fc17a8787cb2bda52fdb77a24a.tar.gz
spack-20b3e418317644fc17a8787cb2bda52fdb77a24a.tar.bz2
spack-20b3e418317644fc17a8787cb2bda52fdb77a24a.tar.xz
spack-20b3e418317644fc17a8787cb2bda52fdb77a24a.zip
adios2: Fix build with gcc@10: (#16570)
-rw-r--r--var/spack/repos/builtin/packages/adios2/package.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/adios2/package.py b/var/spack/repos/builtin/packages/adios2/package.py
index 9d298b4213..4b2f5a74eb 100644
--- a/var/spack/repos/builtin/packages/adios2/package.py
+++ b/var/spack/repos/builtin/packages/adios2/package.py
@@ -118,6 +118,11 @@ class Adios2(CMakePackage):
# See https://github.com/ornladios/ADIOS2/pull/1899
patch('2.5-fix-clear_cache.patch', when='@2.5.0')
+ def setup_build_environment(self, env):
+ # https://github.com/ornladios/ADIOS2/issues/2228
+ if self.spec.satisfies('%gcc@10: +fortran'):
+ env.set('FFLAGS', '-fallow-argument-mismatch')
+
def cmake_args(self):
spec = self.spec