libffi: add -Wno-error=implicit-function-declaration for clang >= 16 (#38356)

This commit is contained in:
Julien Bigot 2023-07-28 16:18:12 +02:00 committed by GitHub
parent ad0b70a64a
commit a8301709a8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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