summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/claw/package.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/var/spack/repos/builtin/packages/claw/package.py b/var/spack/repos/builtin/packages/claw/package.py
index 1d9223f424..8b4de70e6a 100644
--- a/var/spack/repos/builtin/packages/claw/package.py
+++ b/var/spack/repos/builtin/packages/claw/package.py
@@ -57,12 +57,10 @@ class Claw(CMakePackage):
def flag_handler(self, name, flags):
if name == 'cflags':
- comp_spec = self.spec.compiler
- # https://gcc.gnu.org/gcc-10/porting_to.html
- # https://releases.llvm.org/11.0.0/tools/clang/docs/ReleaseNotes.html#modified-compiler-flags
- # TODO: take care of other Clang-based compilers when they become
- # real cases
- if comp_spec.satisfies('gcc@10:') or comp_spec.satisfies('cce@11:'):
+ if any([self.spec.compiler.satisfies(s) for s in
+ ['gcc@10:', 'clang@11:', 'cce@11:', 'aocc@3:']]):
+ # https://gcc.gnu.org/gcc-10/porting_to.html
+ # https://releases.llvm.org/11.0.0/tools/clang/docs/ReleaseNotes.html#modified-compiler-flags
flags.append('-fcommon')
return flags, None, None