mvapich2: Fix build with gcc@10: (#17114)

This commit is contained in:
Michael Kuhn 2020-06-25 05:49:30 +02:00 committed by GitHub
parent 8d67279181
commit cee24fbc98
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -199,6 +199,16 @@ def file_system_options(self):
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')