diff options
author | eugeneswalker <38933153+eugeneswalker@users.noreply.github.com> | 2023-10-27 11:08:33 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-27 12:08:33 -0600 |
commit | f2963e41ba04300c77912a76edce4224f80cc382 (patch) | |
tree | 9eabcaa22c2de7cc7f9642a49e0c4de43231e629 | |
parent | 069762cd37c2a4b2913dcee80aafed3605bb8a10 (diff) | |
download | spack-f2963e41ba04300c77912a76edce4224f80cc382.tar.gz spack-f2963e41ba04300c77912a76edce4224f80cc382.tar.bz2 spack-f2963e41ba04300c77912a76edce4224f80cc382.tar.xz spack-f2963e41ba04300c77912a76edce4224f80cc382.zip |
mgard@2020-10-01 %oneapi@2023: turn of c++11-narrowing via cxxflags (#40743)
-rw-r--r-- | var/spack/repos/builtin/packages/mgard/package.py | 6 |
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"] |