mpich: Fix build with gcc@10: (#16568)

This commit is contained in:
Michael Kuhn 2020-05-11 19:55:36 +02:00 committed by GitHub
parent 43c9ad3421
commit 5ed5c55ebd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -156,6 +156,10 @@ def setup_build_environment(self, env):
env.unset('F90') env.unset('F90')
env.unset('F90FLAGS') env.unset('F90FLAGS')
# https://bugzilla.redhat.com/show_bug.cgi?id=1795817
if self.spec.satisfies('%gcc@10:'):
env.set('FFLAGS', '-fallow-argument-mismatch')
def setup_dependent_build_environment(self, env, dependent_spec): def setup_dependent_build_environment(self, env, dependent_spec):
# On Cray, the regular compiler wrappers *are* the MPI wrappers. # On Cray, the regular compiler wrappers *are* the MPI wrappers.
if 'platform=cray' in self.spec: if 'platform=cray' in self.spec: