py-numcodecs %oneapi: add cflags -Wno-error=implicit-function-declaration (#39454)

This commit is contained in:
eugeneswalker 2023-08-16 13:52:01 -07:00 committed by GitHub
parent 2f145b2684
commit e381e166ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,3 +35,9 @@ class PyNumcodecs(PythonPackage):
depends_on("py-msgpack", type=("build", "run"), when="+msgpack")
patch("apple-clang-12.patch", when="%apple-clang@12:")
def flag_handler(self, name, flags):
if name == "cflags":
if self.spec.satisfies("%oneapi"):
flags.append("-Wno-error=implicit-function-declaration")
return (flags, None, None)