json-c %oneapi: add -Wno-error=implicit-function-declaration (#33585)
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 eugeneswalker
					eugeneswalker