libffi: add -Wno-error=implicit-function-declaration for Arm compiler (#36832)

This commit is contained in:
Annop Wongwathanarat 2023-04-15 13:42:13 +01:00 committed by GitHub
parent 242c1e4535
commit 6d366c39ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -40,7 +40,7 @@ def headers(self):
def flag_handler(self, name, flags):
if name == "cflags":
if self.spec.satisfies("%oneapi@2023:"):
if self.spec.satisfies("%oneapi@2023:") or self.spec.satisfies("%arm@23.04:"):
flags.append("-Wno-error=implicit-function-declaration")
return (flags, None, None)