You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
qb: skip Metal/Vulkan force-on for pre-10.7 macOS targets
The Darwin branch of config.libs.sh unconditionally forces HAVE_METAL
and HAVE_VULKAN on unless the user explicitly disabled them. This
cascades into HAVE_COCOA_METAL being defined via the COCOA/COCOA_METAL
check that follows, which pulls in code such as:
ui/drivers/cocoa/apple_platform.h:51:
cannot find protocol declaration for 'NSWindowDelegate'
NSWindowDelegate as a formal @protocol is a 10.6+ addition. Metal
itself requires 10.11+ and Vulkan via MoltenVK requires 10.11+.
None of these are available on Tiger/Leopard/PowerPC, so forcing
them on there is actively harmful.
Factor the pre-10.7 detection that was added for microphone auto-
disable (c11279c) into a macos_target_pre_10_7 flag computed once,
then use it to also skip the Metal/Vulkan force-on. That keeps the
later check on the plain HAVE_COCOA branch and avoids the 10.6+
code paths entirely.
Modern macOS builds see no change — they continue to force Metal and
Vulkan on and take the HAVE_COCOA_METAL branch. Explicit --enable-
metal / --enable-vulkan still work on any target.
0 commit comments