loki%oneapi@2023.0.0: -Wno-error=dynamic-exception-spec (#34899)

This commit is contained in:
eugeneswalker
2023-01-12 09:06:38 -08:00
committed by GitHub
parent ffae0db115
commit 153b79c2ed

View File

@@ -18,6 +18,13 @@ class Loki(MakefilePackage):
variant("shared", default=True, description="Build shared libraries")
def flag_handler(self, name, flags):
iflags = []
if name == "cxxflags":
if self.spec.satisfies("%oneapi@2023.0.0:"):
iflags.append("-Wno-error=dynamic-exception-spec")
return (iflags, None, None)
def build(self, spec, prefix):
if "+shared" in spec:
make("-C", "src", "build-shared")