suite-sparse: change the condition to add C11 flag. (#16859)

This commit is contained in:
Tomoki, Karatsu 2020-06-05 20:17:41 +09:00 committed by GitHub
parent 94e77333e6
commit 8be7823cc5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,7 +102,7 @@ def install(self, spec, prefix):
# GraphBLAS/Demo/Program/wildtype_demo.c. For many compilers this is
# not an issue because c11 or newer is their default. However, for some
# compilers (e.g. xlc) the c11 flag is necessary.
if spec.satisfies('@5.4:'):
if spec.satisfies('@5.4:5.7.1') and ('%xl' in spec or '%xl_r' in spec):
make_args += ['CFLAGS+=%s' % self.compiler.c11_flag]
# 64bit blas in UMFPACK: