py-gevent%oneapi@2023.0.0: -Wno-error=incompatible-function-pointer-types (#34901)

This commit is contained in:
eugeneswalker 2023-01-13 15:06:16 -08:00 committed by GitHub
parent 229ee7cad9
commit 2c87f59d36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,3 +38,9 @@ class PyGevent(PythonPackage):
# Deprecated compiler options. upstream PR: https://github.com/gevent/gevent/pull/1896
patch("icc.patch", when="%intel")
def flag_handler(self, name, flags):
if name == "cflags":
if self.spec.satisfies("%oneapi@2023:"):
flags.append("-Wno-error=incompatible-function-pointer-types")
return (flags, None, None)