summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorTomoki, Karatsu <49965247+t-karatsu@users.noreply.github.com>2020-06-05 20:17:41 +0900
committerGitHub <noreply@github.com>2020-06-05 13:17:41 +0200
commit8be7823cc5b7147880f7c8107519b4f24f434d8f (patch)
tree6838008d70ec003be225dd612f1f7fceba4fa320 /var
parent94e77333e6c1392a6b95b9a9d8b71cde213ea9c1 (diff)
downloadspack-8be7823cc5b7147880f7c8107519b4f24f434d8f.tar.gz
spack-8be7823cc5b7147880f7c8107519b4f24f434d8f.tar.bz2
spack-8be7823cc5b7147880f7c8107519b4f24f434d8f.tar.xz
spack-8be7823cc5b7147880f7c8107519b4f24f434d8f.zip
suite-sparse: change the condition to add C11 flag. (#16859)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/suite-sparse/package.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/suite-sparse/package.py b/var/spack/repos/builtin/packages/suite-sparse/package.py
index da2cc222ae..0cbdd900b6 100644
--- a/var/spack/repos/builtin/packages/suite-sparse/package.py
+++ b/var/spack/repos/builtin/packages/suite-sparse/package.py
@@ -102,7 +102,7 @@ class SuiteSparse(Package):
# 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: