summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/py-numcodecs/package.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-numcodecs/package.py b/var/spack/repos/builtin/packages/py-numcodecs/package.py
index 5a9d4b5d83..01f6f472ea 100644
--- a/var/spack/repos/builtin/packages/py-numcodecs/package.py
+++ b/var/spack/repos/builtin/packages/py-numcodecs/package.py
@@ -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)