mvapich2: Fix build with gcc@10: (#17114)
This commit is contained in:
parent
8d67279181
commit
cee24fbc98
1 changed files with 10 additions and 0 deletions
|
@ -199,6 +199,16 @@ def file_system_options(self):
|
||||||
|
|
||||||
return opts
|
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):
|
def setup_build_environment(self, env):
|
||||||
# mvapich2 configure fails when F90 and F90FLAGS are set
|
# mvapich2 configure fails when F90 and F90FLAGS are set
|
||||||
env.unset('F90')
|
env.unset('F90')
|
||||||
|
|
Loading…
Reference in a new issue