superlu-dist: add -Wno-error=implicit-function-declaration for Arm compiler (#36831)

This commit is contained in:
Annop Wongwathanarat 2023-04-15 13:40:54 +01:00 committed by GitHub
parent 2651def9fa
commit 5071174194
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -103,10 +103,10 @@ def append_from_variant(*args):
if (spec.satisfies("%xl") or spec.satisfies("%xl_r")) and spec.satisfies("@:6.1.1"):
append_define("CMAKE_C_FLAGS", "-DNoChange")
if spec.satisfies("%oneapi"):
if spec.satisfies("%oneapi") or spec.satisfies("%arm@23.04:"):
#
# 2022 and later Intel OneAPI compilers throws errors compiling
# some of the non ISO C99 compliant code in this package
# 2022 and later Intel OneAPI compilers and Arm compilers version 23.04 and later
# throw errors compiling some of the non ISO C99 compliant code in this package
# see https://reviews.llvm.org/D122983
#
append_define("CMAKE_C_FLAGS", "-Wno-error=implicit-function-declaration")