Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2bb9885

Browse files
h-vetinaric-rhodes
authored andcommitted
[libc++] Increase the minimum deployment target on macOS to 11.0 (llvm#176094)
llvm#166172 moved the effective minimum deployment target on macOS to 10.15 (because `aligned_alloc` is not defined before that in the C stdlib), and indeed, it was mentioned in that PR that libc++ only supports macOS 11 and later. This PR rectifies the documentation and the code to reflect the actually supported deployment targets on macOS. See [1] for additional discussion about this. [1]: https://discourse.llvm.org/t/minimum-macos-deployment-target-increases-to-11-0-in-v22-1-visibility-discussion-on-update-policy (cherry picked from commit d485417)
1 parent 1b246e0 commit 2bb9885

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

libcxx/docs/ReleaseNotes/22.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ Improvements and New Features
106106
Deprecations and Removals
107107
-------------------------
108108

109+
- The minimally supported deployment target on macOS has been increased to 11.0.
110+
109111
Potentially breaking changes
110112
----------------------------
111113

libcxx/docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ Libc++ also supports common platforms and architectures:
143143
===================== ========================= ============================
144144
Target platform Target architecture Notes
145145
===================== ========================= ============================
146-
macOS 10.13+ i386, x86_64, arm64
146+
macOS 11.0+ i386, x86_64, arm64 Deployment target lower bound is the minimum between what Chrome resp. the last stable `Xcode release <https://developer.apple.com/support/xcode>`_ support
147147
FreeBSD 12+ i386, x86_64, arm
148148
Linux i386, x86_64, arm, arm64 Only glibc-2.24 and later and no other libc is officially supported
149149
Android 5.0+ i386, x86_64, arm, arm64

libcxx/include/__configuration/availability.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,11 +196,11 @@
196196
__attribute__((availability(bridgeos, strict, introduced = 6.0))) \
197197
__attribute__((availability(driverkit, strict, introduced = 21.3)))
198198

199-
# if (defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 101300) || \
199+
# if (defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 110000) || \
200200
(defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ < 150000) || \
201201
(defined(__ENVIRONMENT_TV_OS_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_TV_OS_VERSION_MIN_REQUIRED__ < 150000) || \
202-
(defined(__ENVIRONMENT_WATCH_OS_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_WATCH_OS_VERSION_MIN_REQUIRED__ < 70000) || \
203-
(defined(__ENVIRONMENT_DRIVERKIT_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_DRIVERKIT_VERSION_MIN_REQUIRED__ < 190000)
202+
(defined(__ENVIRONMENT_WATCH_OS_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_WATCH_OS_VERSION_MIN_REQUIRED__ < 80000) || \
203+
(defined(__ENVIRONMENT_DRIVERKIT_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_DRIVERKIT_VERSION_MIN_REQUIRED__ < 200000)
204204
# warning "The selected platform is no longer supported by libc++."
205205
# endif
206206

0 commit comments

Comments
 (0)