superlu-dist %oneapi: add -Wno-implicit-function-declaration (#32081)

This commit is contained in:
eugeneswalker 2022-08-14 04:32:19 -07:00 committed by GitHub
parent e250371ee2
commit a56e779071
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -129,6 +129,8 @@ def flag_handler(self, name, flags):
flags.append(self.compiler.cxx11_flag) flags.append(self.compiler.cxx11_flag)
if name == "cflags" and "%pgi" not in self.spec: if name == "cflags" and "%pgi" not in self.spec:
flags.append("-std=c99") flags.append("-std=c99")
if name == "cflags" and self.spec.satisfies("%oneapi"):
flags.append("-Wno-error=implicit-function-declaration")
return (None, None, flags) return (None, None, flags)
examples_src_dir = "EXAMPLE" examples_src_dir = "EXAMPLE"