rempi %oneapi: -Wno-error=implicit-function-declaration (#33654)

This commit is contained in:
eugeneswalker 2022-11-01 16:53:53 -07:00 committed by GitHub
parent 328addd43d
commit 353e31e72a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,6 +23,13 @@ class Rempi(AutotoolsPackage):
depends_on("libtool", type="build")
depends_on("libpciaccess", type="link")
def flag_handler(self, name, flags):
iflags = []
if name == "cflags":
if self.spec.satisfies("%oneapi@2022.2.0:"):
iflags.append("-Wno-error=implicit-function-declaration")
return (iflags, None, None)
def setup_build_environment(self, env):
if self.spec.satisfies("%cce"):
env.set("MPICC", "mpicc")