mpich: Fix @4 build with gcc@10+ (#30084)
* Also set FCFLAGS for gcc@10 * Set FCFLAGS for clang/apple-clang too
This commit is contained in:
parent
1ada151d80
commit
03a7643816
1 changed files with 3 additions and 0 deletions
|
@ -330,11 +330,14 @@ def setup_build_environment(self, env):
|
|||
# https://bugzilla.redhat.com/show_bug.cgi?id=1795817
|
||||
if self.spec.satisfies('%gcc@10:'):
|
||||
env.set('FFLAGS', '-fallow-argument-mismatch')
|
||||
env.set('FCFLAGS', '-fallow-argument-mismatch')
|
||||
# Same fix but for macOS - avoids issue #17934
|
||||
if self.spec.satisfies('%apple-clang@11:'):
|
||||
env.set('FFLAGS', '-fallow-argument-mismatch')
|
||||
env.set('FCFLAGS', '-fallow-argument-mismatch')
|
||||
if self.spec.satisfies('%clang@11:'):
|
||||
env.set('FFLAGS', '-fallow-argument-mismatch')
|
||||
env.set('FCFLAGS', '-fallow-argument-mismatch')
|
||||
|
||||
if 'pmi=cray' in self.spec:
|
||||
env.set(
|
||||
|
|
Loading…
Reference in a new issue