TOOLS/macos-sdk-version: check if xcodebuild is defined

Makes mypy happy.
This commit is contained in:
Kacper Michajłow
2025-01-03 21:25:09 +01:00
parent 37b513a760
commit 805793154d

View File

@@ -30,6 +30,8 @@ def find_macos_sdk():
# use xcode tools when installed, still necessary for xcode versions <12.0
try:
if not xcodebuild:
raise ValueError
sdk_version = check_output(
[xcodebuild, "-sdk", "macosx", "-version", "ProductVersion"],
encoding="UTF-8",