netlib-scalapack: add -Wno-error=implicit-function-declaration for Arm compiler (#36822)

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

View file

@ -89,7 +89,12 @@ def cmake_args(self):
# Work around errors of the form: # Work around errors of the form:
# error: implicit declaration of function 'BI_smvcopy' is # error: implicit declaration of function 'BI_smvcopy' is
# invalid in C99 [-Werror,-Wimplicit-function-declaration] # invalid in C99 [-Werror,-Wimplicit-function-declaration]
if spec.satisfies("%clang") or spec.satisfies("%apple-clang") or spec.satisfies("%oneapi"): if (
spec.satisfies("%clang")
or spec.satisfies("%apple-clang")
or spec.satisfies("%oneapi")
or spec.satisfies("%arm")
):
c_flags.append("-Wno-error=implicit-function-declaration") c_flags.append("-Wno-error=implicit-function-declaration")
options.append(self.define("CMAKE_C_FLAGS", " ".join(c_flags))) options.append(self.define("CMAKE_C_FLAGS", " ".join(c_flags)))