summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorAnton Kozhevnikov <toxa81@gmail.com>2021-06-17 11:40:27 +0200
committerGitHub <noreply@github.com>2021-06-17 03:40:27 -0600
commit85c55896203bc176805b094f0aede8dcc38601b6 (patch)
tree15d39de05c94b56914e00e910f6d478a32a27925 /var
parentee9b1a6ea5c99645e4c5a0ebe47a18bc27b5879b (diff)
downloadspack-85c55896203bc176805b094f0aede8dcc38601b6.tar.gz
spack-85c55896203bc176805b094f0aede8dcc38601b6.tar.bz2
spack-85c55896203bc176805b094f0aede8dcc38601b6.tar.xz
spack-85c55896203bc176805b094f0aede8dcc38601b6.zip
add -fallow-argument-mismatch flag for gcc10 (#24354)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/siesta/package.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/siesta/package.py b/var/spack/repos/builtin/packages/siesta/package.py
index 2779e8420a..4060d90eb7 100644
--- a/var/spack/repos/builtin/packages/siesta/package.py
+++ b/var/spack/repos/builtin/packages/siesta/package.py
@@ -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',