json-c %oneapi: add -Wno-error=implicit-function-declaration (#33585)

This commit is contained in:
eugeneswalker 2022-10-29 05:13:54 -07:00 committed by GitHub
parent 6edb20c7a6
commit c10d525956
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,6 +42,13 @@ def patch(self):
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