netlib-scalapack: add -Wno-error=implicit-function-declaration for Arm compiler (#36822)
This commit is contained in:
parent
03ba24b370
commit
22984edb1b
1 changed files with 6 additions and 1 deletions
|
@ -89,7 +89,12 @@ def cmake_args(self):
|
|||
# Work around errors of the form:
|
||||
# error: implicit declaration of function 'BI_smvcopy' is
|
||||
# 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")
|
||||
|
||||
options.append(self.define("CMAKE_C_FLAGS", " ".join(c_flags)))
|
||||
|
|
Loading…
Reference in a new issue