mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-22 10:57:08 +00:00
TOOLS/macos-sdk-version: check if xcodebuild is defined
Makes mypy happy.
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user