hdf5 flag_handler for icx: add -Wno-implicit-function-declaration (#32066)
This commit is contained in:
parent
a56e779071
commit
d192e6f88b
1 changed files with 2 additions and 2 deletions
|
@ -331,10 +331,10 @@ def flag_handler(self, name, flags):
|
|||
cmake_flags = []
|
||||
|
||||
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
|
||||
# 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.
|
||||
if spec.satisfies("@:1.8.12~shared"):
|
||||
# More recent versions set CMAKE_POSITION_INDEPENDENT_CODE to
|
||||
|
|
Loading…
Reference in a new issue