py-scipy: Fix build with gcc@10: (#16687)

This commit is contained in:
Michael Kuhn 2020-05-17 03:55:20 +02:00 committed by GitHub
parent babfd144ad
commit 41907639c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,6 +65,11 @@ class PyScipy(PythonPackage):
depends_on('blas')
depends_on('lapack')
def setup_build_environment(self, env):
# https://github.com/scipy/scipy/issues/11611
if self.spec.satisfies('@:1.4 %gcc@10:'):
env.set('FFLAGS', '-fallow-argument-mismatch')
def build_args(self, spec, prefix):
args = []