Bug fixes for building py-netcdf4 and py-ruamel-yaml-clib with apple-clang@15 (#46184)

* Fix compiler flags in py-netcdf4 for apple-clang@15:
* Fix compiler flags in py-ruamel-yaml-clib for apple-clang@15:
This commit is contained in:
Dom Heinzeller 2024-09-05 12:29:26 -06:00 committed by GitHub
parent 4d36b0a5ef
commit 6b05a80745
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ class PyNetcdf4(PythonPackage):
def flag_handler(self, name, flags):
if name == "cflags":
if self.spec.satisfies("%oneapi"):
if self.spec.satisfies("%oneapi") or self.spec.satisfies("%apple-clang@15:"):
flags.append("-Wno-error=int-conversion")
return flags, None, None

View File

@ -28,6 +28,6 @@ class PyRuamelYamlClib(PythonPackage):
def flag_handler(self, name, flags):
if name == "cflags":
if self.spec.satisfies("%oneapi"):
if self.spec.satisfies("%oneapi") or self.spec.satisfies(" %apple-clang@15:"):
flags.append("-Wno-error=incompatible-function-pointer-types")
return (flags, None, None)