arpack-ng %oneapi: add -Wno-implicit-function-declaration (#32080)

This commit is contained in:
eugeneswalker 2022-08-14 08:48:24 -07:00 committed by GitHub
parent 4d31b6bf8b
commit 53e41ca9f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,6 +81,14 @@ class ArpackNg(Package):
depends_on("mpi", when="+mpi")
def flag_handler(self, name, flags):
spec = self.spec
iflags = []
if name == "cflags":
if spec.satisfies("%oneapi"):
iflags.append("-Wno-error=implicit-function-declaration")
return (iflags, None, None)
@property
def libs(self):
# TODO: do we need spec['arpack-ng:parallel'].libs ?