add -fallow-argument-mismatch flag for gcc10 (#24354)

This commit is contained in:
Anton Kozhevnikov 2021-06-17 11:40:27 +02:00 committed by GitHub
parent ee9b1a6ea5
commit 85c5589620
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,6 +28,11 @@ class Siesta(Package):
phases = ['configure', 'build', 'install']
def flag_handler(self, name, flags):
if '%gcc@10:' in self.spec and name == 'fflags':
flags.append('-fallow-argument-mismatch')
return (flags, None, None)
def configure(self, spec, prefix):
sh = which('sh')
configure_args = ['--enable-mpi',