From b43104acab6b656d23df0a695e18a358aad2ad66 Mon Sep 17 00:00:00 2001 From: eugeneswalker <38933153+eugeneswalker@users.noreply.github.com> Date: Sun, 14 Aug 2022 04:43:51 -0700 Subject: [PATCH] openblas@0.3.20 %openblas: -Wno-implicit-function-declaration (#32065) --- var/spack/repos/builtin/packages/openblas/package.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/var/spack/repos/builtin/packages/openblas/package.py b/var/spack/repos/builtin/packages/openblas/package.py index 18bf0e83d0..c1ac5ac24e 100644 --- a/var/spack/repos/builtin/packages/openblas/package.py +++ b/var/spack/repos/builtin/packages/openblas/package.py @@ -177,6 +177,14 @@ class Openblas(MakefilePackage): depends_on("perl", type="build") + def flag_handler(self, name, flags): + spec = self.spec + iflags = [] + if name == "cflags": + if spec.satisfies("@0.3.20 %oneapi"): + iflags.append("-Wno-error=implicit-function-declaration") + return (iflags, None, None) + @classmethod def determine_version(cls, lib): ver = None