hdf5 flag_handler for icx: add -Wno-implicit-function-declaration (#32066)

This commit is contained in:
eugeneswalker 2022-08-14 04:42:58 -07:00 committed by GitHub
parent a56e779071
commit d192e6f88b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -331,10 +331,10 @@ def flag_handler(self, name, flags):
cmake_flags = [] cmake_flags = []
if name == "cflags": if name == "cflags":
if spec.compiler.name in ["gcc", "clang", "apple-clang"]: if spec.compiler.name in ["gcc", "clang", "apple-clang", "oneapi"]:
# Quiet warnings/errors about implicit declaration of functions # Quiet warnings/errors about implicit declaration of functions
# in C99: # in C99:
cmake_flags.append("-Wno-implicit-function-declaration") cmake_flags.append("-Wno-error=implicit-function-declaration")
# Note that this flag will cause an error if building %nvhpc. # Note that this flag will cause an error if building %nvhpc.
if spec.satisfies("@:1.8.12~shared"): if spec.satisfies("@:1.8.12~shared"):
# More recent versions set CMAKE_POSITION_INDEPENDENT_CODE to # More recent versions set CMAKE_POSITION_INDEPENDENT_CODE to