py-ruamel-yaml-clib %oneapi: -Wno-error=incompatible-function-pointer-types (#39480)

This commit is contained in:
eugeneswalker 2023-08-17 02:59:45 -07:00 committed by GitHub
parent 02763e967a
commit fb598baa53
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,3 +21,9 @@ class PyRuamelYamlClib(PythonPackage):
# to prevent legacy-install-failure
depends_on("python@:3.9", when="@0.2.0", type=("build", "link", "run"))
depends_on("py-setuptools@28.7.0:", type="build")
def flag_handler(self, name, flags):
if name == "cflags":
if self.spec.satisfies("%oneapi"):
flags.append("-Wno-error=incompatible-function-pointer-types")
return (flags, None, None)