diff options
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/arpack-ng/package.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/arpack-ng/package.py b/var/spack/repos/builtin/packages/arpack-ng/package.py index 20357d7c25..2a41813033 100644 --- a/var/spack/repos/builtin/packages/arpack-ng/package.py +++ b/var/spack/repos/builtin/packages/arpack-ng/package.py @@ -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 ? |