summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreugeneswalker <38933153+eugeneswalker@users.noreply.github.com>2022-08-14 04:43:51 -0700
committerGitHub <noreply@github.com>2022-08-14 07:43:51 -0400
commitb43104acab6b656d23df0a695e18a358aad2ad66 (patch)
tree03076baba3dbb0cddbef698270306633cf0ce34e
parentd192e6f88bcdee57144eb00e1d29fa25f0783ccd (diff)
downloadspack-b43104acab6b656d23df0a695e18a358aad2ad66.tar.gz
spack-b43104acab6b656d23df0a695e18a358aad2ad66.tar.bz2
spack-b43104acab6b656d23df0a695e18a358aad2ad66.tar.xz
spack-b43104acab6b656d23df0a695e18a358aad2ad66.zip
openblas@0.3.20 %openblas: -Wno-implicit-function-declaration (#32065)
-rw-r--r--var/spack/repos/builtin/packages/openblas/package.py8
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