diff --git a/var/spack/repos/builtin/packages/netlib-scalapack/package.py b/var/spack/repos/builtin/packages/netlib-scalapack/package.py index db423fc567..95f164ef49 100644 --- a/var/spack/repos/builtin/packages/netlib-scalapack/package.py +++ b/var/spack/repos/builtin/packages/netlib-scalapack/package.py @@ -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)))