openblas: add -Wno-error=implicit-function-declaration for Arm compiler (#36821)

This commit is contained in:
Annop Wongwathanarat 2023-04-15 13:45:35 +01:00 committed by GitHub
parent 22984edb1b
commit cf817bdd4e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -212,7 +212,7 @@ def flag_handler(self, name, flags):
spec = self.spec spec = self.spec
iflags = [] iflags = []
if name == "cflags": if name == "cflags":
if spec.satisfies("@0.3.20: %oneapi"): if spec.satisfies("@0.3.20: %oneapi") or spec.satisfies("@0.3.20: %arm"):
iflags.append("-Wno-error=implicit-function-declaration") iflags.append("-Wno-error=implicit-function-declaration")
return (iflags, None, None) return (iflags, None, None)