summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authoretiennemlb <72296335+etiennemlb@users.noreply.github.com>2024-08-29 01:33:26 +0200
committerGitHub <noreply@github.com>2024-08-28 16:33:26 -0700
commit699735016f6099952f09f127686f764e4bbd9525 (patch)
tree543e03d47708a668331cfbf983b67a61e41ada3e /var
parentec85bbe3f72ba24a4f4ebe21de436da1d610ff87 (diff)
downloadspack-699735016f6099952f09f127686f764e4bbd9525.tar.gz
spack-699735016f6099952f09f127686f764e4bbd9525.tar.bz2
spack-699735016f6099952f09f127686f764e4bbd9525.tar.xz
spack-699735016f6099952f09f127686f764e4bbd9525.zip
Add more compiler leniency (#46083)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/mgard/package.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/var/spack/repos/builtin/packages/mgard/package.py b/var/spack/repos/builtin/packages/mgard/package.py
index d4ffaca07f..f397ffe08c 100644
--- a/var/spack/repos/builtin/packages/mgard/package.py
+++ b/var/spack/repos/builtin/packages/mgard/package.py
@@ -74,10 +74,15 @@ class Mgard(CMakePackage, CudaPackage):
def flag_handler(self, name, flags):
if name == "cxxflags":
- if self.spec.satisfies("@2020-10-01 %oneapi@2023:"):
- flags.append("-Wno-error=c++11-narrowing")
- if self.spec.satisfies("@2020-10-01 %apple-clang@15:"):
- flags.append("-Wno-error=c++11-narrowing")
+ for a_spec in [
+ "@2020-10-01 %oneapi@2023:",
+ "@2020-10-01 %apple-clang@15:",
+ "@2020-10-01 %aocc@3:",
+ "@2020-10-01 %cce@15:",
+ "@2020-10-01 %rocmcc@4:",
+ ]:
+ if self.spec.satisfies(a_spec):
+ flags.append("-Wno-error=c++11-narrowing")
return (flags, None, None)
def cmake_args(self):