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:
parent
4d36b0a5ef
commit
6b05a80745
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user