czmq %oneapi: -Wno-error: gnu-null-pointer-arithmetic, strict-prototypes (#33586)
This commit is contained in:
		| @@ -25,6 +25,14 @@ class Czmq(AutotoolsPackage): | |||||||
|     depends_on("uuid") |     depends_on("uuid") | ||||||
|     depends_on("libzmq") |     depends_on("libzmq") | ||||||
| 
 | 
 | ||||||
|  |     def flag_handler(self, name, flags): | ||||||
|  |         iflags = [] | ||||||
|  |         if name == "cflags": | ||||||
|  |             if self.spec.satisfies("%oneapi@2022.2.0:"): | ||||||
|  |                 iflags.append("-Wno-error=gnu-null-pointer-arithmetic") | ||||||
|  |                 iflags.append("-Wno-error=strict-prototypes") | ||||||
|  |         return (iflags, None, None) | ||||||
|  | 
 | ||||||
|     def autoreconf(self, spec, prefix): |     def autoreconf(self, spec, prefix): | ||||||
|         autogen = Executable("./autogen.sh") |         autogen = Executable("./autogen.sh") | ||||||
|         autogen() |         autogen() | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 eugeneswalker
					eugeneswalker