czmq %oneapi: -Wno-error: gnu-null-pointer-arithmetic, strict-prototypes (#33586)

This commit is contained in:
eugeneswalker 2022-10-29 05:14:15 -07:00 committed by GitHub
parent c10d525956
commit ef8c15c5ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,6 +25,14 @@ class Czmq(AutotoolsPackage):
depends_on("uuid")
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):
autogen = Executable("./autogen.sh")
autogen()