From a22a30abc04702b00e5b3aebbf7c243f32a74c6b Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Thu, 31 Dec 2020 11:25:03 +0200 Subject: [PATCH] build script: override platform for moltenvk target --- build.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/build.py b/build.py index 66a49246..9f708f45 100755 --- a/build.py +++ b/build.py @@ -1109,6 +1109,13 @@ class MoltenVKTarget(MakeTarget): def detect(self, builder: 'Builder') -> bool: return os.path.exists(builder.source_path + 'MoltenVKPackaging.xcodeproj') + def configure(self, builder: 'Builder'): + # Unset platform to avoid using specified macOS deployment target and SDK + # MoltenVK defines minimal OS version itself, and usually, it requires the very recent SDK + builder.platform = None + + super().configure(builder) + def build(self, builder: 'Builder'): args = ('./fetchDependencies', '--macos', '-v') subprocess.check_call(args, cwd=builder.build_path)