Skip to content

Commit

Permalink
Turn off nullability warnings for macOS SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Feb 23, 2024
1 parent 5830396 commit 24865e5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,9 @@ def build_extensions(self):
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")
Expand Down

0 comments on commit 24865e5

Please sign in to comment.