diff options
author | Michael Kuhn <michael.kuhn@informatik.uni-hamburg.de> | 2020-06-25 05:49:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-24 22:49:30 -0500 |
commit | cee24fbc9871095e9d817f2c16a3d74401f7b641 (patch) | |
tree | 4fb11033fa466ff5108f3ee0e9225ebf7affbbd0 | |
parent | 8d67279181f81f6053659a79f013b1f6266e3f70 (diff) | |
download | spack-cee24fbc9871095e9d817f2c16a3d74401f7b641.tar.gz spack-cee24fbc9871095e9d817f2c16a3d74401f7b641.tar.bz2 spack-cee24fbc9871095e9d817f2c16a3d74401f7b641.tar.xz spack-cee24fbc9871095e9d817f2c16a3d74401f7b641.zip |
mvapich2: Fix build with gcc@10: (#17114)
-rw-r--r-- | var/spack/repos/builtin/packages/mvapich2/package.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/mvapich2/package.py b/var/spack/repos/builtin/packages/mvapich2/package.py index dac9b69c49..0e0ab26a22 100644 --- a/var/spack/repos/builtin/packages/mvapich2/package.py +++ b/var/spack/repos/builtin/packages/mvapich2/package.py @@ -199,6 +199,16 @@ class Mvapich2(AutotoolsPackage): return opts + def flag_handler(self, name, flags): + if name == 'fflags': + # https://bugzilla.redhat.com/show_bug.cgi?id=1795817 + if self.spec.satisfies('%gcc@10:'): + if flags is None: + flags = [] + flags.append('-fallow-argument-mismatch') + + return (flags, None, None) + def setup_build_environment(self, env): # mvapich2 configure fails when F90 and F90FLAGS are set env.unset('F90') |