scorpio: add -Wno-error=implicit-function-declaration for Arm compiler (#36827)

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

View File

@ -28,6 +28,6 @@ class Scorpio(CMakePackage):
def cmake_args(self):
opts = []
if self.spec.satisfies("%apple-clang@12:"):
if self.spec.satisfies("%apple-clang@12:") or self.spec.satisfies("%arm@23.04:"):
opts.append(self.define("CMAKE_C_FLAGS", "-Wno-error=implicit-function-declaration"))
return opts