From a8301709a8d925e062e31942123535dc8536fd4f Mon Sep 17 00:00:00 2001 From: Julien Bigot Date: Fri, 28 Jul 2023 16:18:12 +0200 Subject: [PATCH] libffi: add -Wno-error=implicit-function-declaration for clang >= 16 (#38356) --- var/spack/repos/builtin/packages/libffi/package.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/var/spack/repos/builtin/packages/libffi/package.py b/var/spack/repos/builtin/packages/libffi/package.py index 2526b615b7..c67bd82ddd 100644 --- a/var/spack/repos/builtin/packages/libffi/package.py +++ b/var/spack/repos/builtin/packages/libffi/package.py @@ -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)