hdf: %oneapi: -Wno-error=implicit-function-declaration (#43631)
* hdf: %oneapi: -Wno-error=implicit-function-declaration * [@spackbot] updating style on behalf of eugeneswalker
This commit is contained in:
parent
5d6b5f3f6f
commit
50585d55c5
1 changed files with 5 additions and 1 deletions
|
@ -146,7 +146,11 @@ def flag_handler(self, name, flags):
|
|||
|
||||
if name == "cflags":
|
||||
# https://forum.hdfgroup.org/t/help-building-hdf4-with-clang-error-implicit-declaration-of-function-test-mgr-szip-is-invalid-in-c99/7680
|
||||
if self.spec.satisfies("@:4.2.15 %apple-clang") or self.spec.satisfies("%clang@16:"):
|
||||
if (
|
||||
self.spec.satisfies("@:4.2.15 %apple-clang")
|
||||
or self.spec.satisfies("%clang@16:")
|
||||
or self.spec.satisfies("%oneapi")
|
||||
):
|
||||
flags.append("-Wno-error=implicit-function-declaration")
|
||||
|
||||
if self.spec.satisfies("%clang@16:"):
|
||||
|
|
Loading…
Reference in a new issue