diff options
author | Sergey Kosukhin <sergey.kosukhin@mpimet.mpg.de> | 2022-04-06 06:57:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-06 06:57:38 +0200 |
commit | 2816d28e90e9639359b6fa74d744743823689398 (patch) | |
tree | b59166cbd6b505d47c156d3ae05aad69d6045e28 /var/spack | |
parent | da6d9a33c1f22af072a07c4fd4157f80a3cc85ab (diff) | |
download | spack-2816d28e90e9639359b6fa74d744743823689398.tar.gz spack-2816d28e90e9639359b6fa74d744743823689398.tar.bz2 spack-2816d28e90e9639359b6fa74d744743823689398.tar.xz spack-2816d28e90e9639359b6fa74d744743823689398.zip |
claw: enable building with clang@11: and aocc@3: (#29891)
Diffstat (limited to 'var/spack')
-rw-r--r-- | var/spack/repos/builtin/packages/claw/package.py | 10 |
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 |