summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreugeneswalker <38933153+eugeneswalker@users.noreply.github.com>2022-10-29 05:14:15 -0700
committerGitHub <noreply@github.com>2022-10-29 06:14:15 -0600
commitef8c15c5eff460d9ae3aa783c212722c6fd581e2 (patch)
tree00297daece3b757b9158127a77df4ca796763321
parentc10d52595688e2e2c21637461912fb8d621c790a (diff)
downloadspack-ef8c15c5eff460d9ae3aa783c212722c6fd581e2.tar.gz
spack-ef8c15c5eff460d9ae3aa783c212722c6fd581e2.tar.bz2
spack-ef8c15c5eff460d9ae3aa783c212722c6fd581e2.tar.xz
spack-ef8c15c5eff460d9ae3aa783c212722c6fd581e2.zip
czmq %oneapi: -Wno-error: gnu-null-pointer-arithmetic, strict-prototypes (#33586)
-rw-r--r--var/spack/repos/builtin/packages/czmq/package.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/czmq/package.py b/var/spack/repos/builtin/packages/czmq/package.py
index 60d1cdd71a..a0b3577462 100644
--- a/var/spack/repos/builtin/packages/czmq/package.py
+++ b/var/spack/repos/builtin/packages/czmq/package.py
@@ -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()