py-numcodecs %oneapi: add cflags -Wno-error=implicit-function-declaration (#39454)
This commit is contained in:
parent
2f145b2684
commit
e381e166ec
1 changed files with 6 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue