From adcc505e10a329b7d894eae16f7a43cf28221243 Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Sun, 4 Feb 2024 23:09:52 +0200 Subject: [PATCH] [macOS] Check Vulkan SDK version when looking for MoltenVK libs. (cherry picked from commit 70e328385c8c9e11ff2d62906edd5a0706c27b9f) --- platform/macos/detect.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/macos/detect.py b/platform/macos/detect.py index d72061f8097..382828a0827 100644 --- a/platform/macos/detect.py +++ b/platform/macos/detect.py @@ -67,13 +67,14 @@ def get_mvk_sdk_path(): if not os.path.exists(dirname): return "" + ver_min = ver_parse("1.3.231.0") ver_num = ver_parse("0.0.0.0") files = os.listdir(dirname) lib_name_out = dirname for file in files: if os.path.isdir(os.path.join(dirname, file)): ver_comp = ver_parse(file) - if ver_comp > ver_num: + if ver_comp > ver_num and ver_comp >= ver_min: # Try new SDK location. lib_name = os.path.join( os.path.join(dirname, file), "macOS/lib/MoltenVK.xcframework/macos-arm64_x86_64/"