summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreugeneswalker <38933153+eugeneswalker@users.noreply.github.com>2022-10-29 05:13:54 -0700
committerGitHub <noreply@github.com>2022-10-29 06:13:54 -0600
commitc10d52595688e2e2c21637461912fb8d621c790a (patch)
treeec109375e67ca2897692e28e33bd224779deb454
parent6edb20c7a63d5b0777ee7b1f89b91a6e70a0a492 (diff)
downloadspack-c10d52595688e2e2c21637461912fb8d621c790a.tar.gz
spack-c10d52595688e2e2c21637461912fb8d621c790a.tar.bz2
spack-c10d52595688e2e2c21637461912fb8d621c790a.tar.xz
spack-c10d52595688e2e2c21637461912fb8d621c790a.zip
json-c %oneapi: add -Wno-error=implicit-function-declaration (#33585)
-rw-r--r--var/spack/repos/builtin/packages/json-c/package.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/json-c/package.py b/var/spack/repos/builtin/packages/json-c/package.py
index a62e0323ea..d13bddecb8 100644
--- a/var/spack/repos/builtin/packages/json-c/package.py
+++ b/var/spack/repos/builtin/packages/json-c/package.py
@@ -42,6 +42,13 @@ class JsonC(CMakePackage, AutotoolsPackage):
def patch(self):
filter_file("-Werror", "", "CMakeLists.txt")
+ def flag_handler(self, name, flags):
+ iflags = []
+ if name == "cflags":
+ if self.spec.satisfies("%oneapi"):
+ iflags.append("-Wno-error=implicit-function-declaration")
+ return (iflags, None, None)
+
@run_after("install")
def darwin_fix(self):
# The shared library is not installed correctly on Darwin; fix this