Skip to content

Commit

Permalink
Merge pull request #87960 from bruvzg/mvk_ver_chk
Browse files Browse the repository at this point in the history
[macOS] Check Vulkan SDK version when looking for MoltenVK libs.
  • Loading branch information
akien-mga committed Feb 5, 2024
2 parents 01fd96e + 70e3283 commit 6f2adcd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion platform/macos/detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,14 @@ def ver_parse(a):
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/"
Expand Down

0 comments on commit 6f2adcd

Please sign in to comment.