From 467767466763b734ef8b770834b4d84e0ba02c28 Mon Sep 17 00:00:00 2001 From: ketsubouchi Date: Fri, 18 Dec 2020 01:40:01 +0900 Subject: [PATCH] suite-sparse: add flags for Fujitsu compilers (#20393) --- var/spack/repos/builtin/packages/suite-sparse/package.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/var/spack/repos/builtin/packages/suite-sparse/package.py b/var/spack/repos/builtin/packages/suite-sparse/package.py index 0c75d8394fc..b7e7c553173 100644 --- a/var/spack/repos/builtin/packages/suite-sparse/package.py +++ b/var/spack/repos/builtin/packages/suite-sparse/package.py @@ -119,8 +119,8 @@ def install(self, spec, prefix): # SuiteSparse defaults to using '-fno-common -fexceptions' in # CFLAGS, but not all compilers use the same flags for these # optimizations - if any([x in spec - for x in ('%apple-clang', '%clang', '%gcc', '%intel')]): + if any([x in spec for x in + ('%apple-clang', '%clang', '%gcc', '%intel', '%fj')]): make_args += ['CFLAGS+=-fno-common -fexceptions'] elif '%pgi' in spec: make_args += ['CFLAGS+=--exceptions']