diff --git a/var/spack/repos/builtin/packages/libffi/package.py b/var/spack/repos/builtin/packages/libffi/package.py index 976b4a9579..2526b615b7 100644 --- a/var/spack/repos/builtin/packages/libffi/package.py +++ b/var/spack/repos/builtin/packages/libffi/package.py @@ -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)