czmq %oneapi: -Wno-error: gnu-null-pointer-arithmetic, strict-prototypes (#33586)
This commit is contained in:
parent
c10d525956
commit
ef8c15c5ef
1 changed files with 8 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue