From b08c779a2f0fdb7dfd3cf9655e7443951a62c2e6 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Wed, 30 Dec 2020 11:13:54 +0200 Subject: [PATCH] build script: disable metal support in sdl2 it's impossible to have metal (and vulkan) support with 10.9 deployment target --- build.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/build.py b/build.py index 7ebbedab..74bea07c 100755 --- a/build.py +++ b/build.py @@ -1338,6 +1338,13 @@ class Sdl2Target(CMakeStaticDependencyTarget): def __init__(self, name='sdl2'): super().__init__(name) + # Need to have uniform settings for x86_64 and arm64 because of linking with Metal framework + # TODO: Remove this when default target for x64 will become 10.11+ + opts = self.options + opts['VIDEO_VULKAN'] = 'NO' + opts['VIDEO_METAL'] = 'NO' + opts['RENDER_METAL'] = 'NO' + def prepare_source(self, builder: 'Builder'): builder.download_source( 'https://libsdl.org/release/SDL2-2.0.14.tar.gz',