summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/mgard/package.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/mgard/package.py b/var/spack/repos/builtin/packages/mgard/package.py
index b58f4c0bba..411dd0c9b9 100644
--- a/var/spack/repos/builtin/packages/mgard/package.py
+++ b/var/spack/repos/builtin/packages/mgard/package.py
@@ -59,6 +59,12 @@ class Mgard(CMakePackage, CudaPackage):
)
conflicts("%gcc@:7", when="@2022-11-18:", msg="requires std::optional and other c++17 things")
+ 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")
+ return (flags, None, None)
+
def cmake_args(self):
spec = self.spec
args = ["-DBUILD_TESTING=OFF"]