From 1f5f2f5ebb54144c72b1944cc2bfbb178817c022 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Thu, 24 Sep 2026 13:21:36 -0600 Subject: [PATCH] macOS: Target 11.0, the oldest current libc++ supports With a deployment target of 10.13 (10.14 for arm64 libretro), every file that includes a libc++ header warned "The selected platform is no longer supported by libc++." Apple Silicon Macs start at 11 anyway. Co-Authored-By: Claude Opus 5.5 (1M context) --- CMakeLists.txt | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ff03e675da..fc87b0ce15 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -510,11 +510,8 @@ if(NOT MSVC) if(IOS) set(CMAKE_OSX_DEPLOYMENT_TARGET "12.0") elseif(APPLE AND NOT CMAKE_CROSSCOMPILING) - if(LIBRETRO AND ARM64) - set(CMAKE_OSX_DEPLOYMENT_TARGET "10.14") - else() - set(CMAKE_OSX_DEPLOYMENT_TARGET "10.13") - endif() + # The oldest libc++ in current Xcode supports ("The selected platform is no longer supported" below). + set(CMAKE_OSX_DEPLOYMENT_TARGET "11.0") add_compile_options("$<$:-stdlib=libc++>" -U__STRICT_ANSI__) set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LIBRARY "libc++") elseif(NOT ANDROID)