diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/pruners-ninja/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/pruners-ninja/package.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/pruners-ninja/package.py b/var/spack/repos/builtin/packages/pruners-ninja/package.py index 7ec3f33243..9a74da5b3b 100644 --- a/var/spack/repos/builtin/packages/pruners-ninja/package.py +++ b/var/spack/repos/builtin/packages/pruners-ninja/package.py @@ -24,3 +24,9 @@ class PrunersNinja(AutotoolsPackage): depends_on("libtool", type="build") patch("pruners-mutli-def-a-pr3-fix.patch") + + def flag_handler(self, name, flags): + if name == "cflags": + if self.spec.satisfies("%oneapi"): + flags.append("-Wno-error=implicit-function-declaration") + return (flags, None, None) |