diff options
-rw-r--r-- | var/spack/repos/builtin/packages/openblas/package.py | 8 |
1 files changed, 8 insertions, 0 deletions
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 |