Merge pull request #7827 from radarhere/macos_sdk_warnings

This commit is contained in:
Hugo van Kemenade 2024-03-11 12:39:56 +02:00 committed by GitHub
commit 28908cb15c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -569,6 +569,9 @@ class pil_build_ext(build_ext):
if sdk_path:
_add_directory(library_dirs, os.path.join(sdk_path, "usr", "lib"))
_add_directory(include_dirs, os.path.join(sdk_path, "usr", "include"))
for extension in self.extensions:
extension.extra_compile_args = ["-Wno-nullability-completeness"]
elif (
sys.platform.startswith("linux")
or sys.platform.startswith("gnu")