[libc++] Enable the synchronization library on Apple platforms
The synchronization library was marked as disabled on Apple platforms up to now because we were not 100% sure that it was going to be ABI stable. However, it's been some time since we shipped it in upstream libc++ now and there's been no changes so far. This patch enables the synchronization library on Apple platforms, and hence commits the ABI stability as far as that vendor is concerned. Differential Revision: https://reviews.llvm.org/D96790
This commit is contained in:
parent
2244a0f5fe
commit
f84dbd2f2b
@ -222,13 +222,20 @@
|
||||
# define _LIBCPP_AVAILABILITY_TO_CHARS \
|
||||
_LIBCPP_AVAILABILITY_FILESYSTEM
|
||||
|
||||
// Note: Those are not ABI-stable yet, so we can't ship them.
|
||||
# define _LIBCPP_AVAILABILITY_SYNC \
|
||||
__attribute__((unavailable))
|
||||
# define _LIBCPP_AVAILABILITY_DISABLE_FTM___cpp_lib_atomic_wait
|
||||
# define _LIBCPP_AVAILABILITY_DISABLE_FTM___cpp_lib_barrier
|
||||
# define _LIBCPP_AVAILABILITY_DISABLE_FTM___cpp_lib_latch
|
||||
# define _LIBCPP_AVAILABILITY_DISABLE_FTM___cpp_lib_semaphore
|
||||
__attribute__((availability(macosx,strict,introduced=11.0))) \
|
||||
__attribute__((availability(ios,strict,introduced=14.0))) \
|
||||
__attribute__((availability(tvos,strict,introduced=14.0))) \
|
||||
__attribute__((availability(watchos,strict,introduced=7.0)))
|
||||
# if (defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 110000) || \
|
||||
(defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ < 140000) || \
|
||||
(defined(__ENVIRONMENT_TV_OS_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_TV_OS_VERSION_MIN_REQUIRED__ < 140000) || \
|
||||
(defined(__ENVIRONMENT_WATCH_OS_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_WATCH_OS_VERSION_MIN_REQUIRED__ < 70000)
|
||||
# define _LIBCPP_AVAILABILITY_DISABLE_FTM___cpp_lib_atomic_wait
|
||||
# define _LIBCPP_AVAILABILITY_DISABLE_FTM___cpp_lib_barrier
|
||||
# define _LIBCPP_AVAILABILITY_DISABLE_FTM___cpp_lib_latch
|
||||
# define _LIBCPP_AVAILABILITY_DISABLE_FTM___cpp_lib_semaphore
|
||||
# endif
|
||||
|
||||
// This controls the availability of the C++20 format library.
|
||||
// The library is in development and not ABI stable yet. Currently
|
||||
|
||||
@ -10,9 +10,8 @@
|
||||
// XFAIL: c++03
|
||||
// XFAIL: !non-lockfree-atomics
|
||||
|
||||
// This test requires the dylib support introduced in D68480,
|
||||
// which hasn't shipped yet.
|
||||
// XFAIL: use_system_cxx_lib && x86_64-apple
|
||||
// This test requires the dylib support introduced in D68480, which shipped in
|
||||
// macOS 11.0.
|
||||
// XFAIL: use_system_cxx_lib && x86_64-apple-macosx10.15
|
||||
// XFAIL: use_system_cxx_lib && x86_64-apple-macosx10.14
|
||||
// XFAIL: use_system_cxx_lib && x86_64-apple-macosx10.13
|
||||
|
||||
@ -9,9 +9,8 @@
|
||||
// UNSUPPORTED: libcpp-has-no-threads
|
||||
// UNSUPPORTED: c++03, c++11
|
||||
|
||||
// This test requires the dylib support introduced in D68480,
|
||||
// which hasn't shipped yet.
|
||||
// XFAIL: use_system_cxx_lib && x86_64-apple
|
||||
// This test requires the dylib support introduced in D68480, which shipped in
|
||||
// macOS 11.0.
|
||||
// XFAIL: use_system_cxx_lib && x86_64-apple-macosx10.15
|
||||
// XFAIL: use_system_cxx_lib && x86_64-apple-macosx10.14
|
||||
// XFAIL: use_system_cxx_lib && x86_64-apple-macosx10.13
|
||||
|
||||
@ -9,9 +9,8 @@
|
||||
// UNSUPPORTED: libcpp-has-no-threads
|
||||
// UNSUPPORTED: c++03, c++11
|
||||
|
||||
// This test requires the dylib support introduced in D68480,
|
||||
// which hasn't shipped yet.
|
||||
// XFAIL: use_system_cxx_lib && x86_64-apple
|
||||
// This test requires the dylib support introduced in D68480, which shipped in
|
||||
// macOS 11.0.
|
||||
// XFAIL: use_system_cxx_lib && x86_64-apple-macosx10.15
|
||||
// XFAIL: use_system_cxx_lib && x86_64-apple-macosx10.14
|
||||
// XFAIL: use_system_cxx_lib && x86_64-apple-macosx10.13
|
||||
|
||||
@ -9,9 +9,8 @@
|
||||
// UNSUPPORTED: libcpp-has-no-threads
|
||||
// UNSUPPORTED: c++03, c++11
|
||||
|
||||
// This test requires the dylib support introduced in D68480,
|
||||
// which hasn't shipped yet.
|
||||
// XFAIL: use_system_cxx_lib && x86_64-apple
|
||||
// This test requires the dylib support introduced in D68480, which shipped in
|
||||
// macOS 11.0.
|
||||
// XFAIL: use_system_cxx_lib && x86_64-apple-macosx10.15
|
||||
// XFAIL: use_system_cxx_lib && x86_64-apple-macosx10.14
|
||||
// XFAIL: use_system_cxx_lib && x86_64-apple-macosx10.13
|
||||
|
||||
@ -9,9 +9,8 @@
|
||||
// UNSUPPORTED: libcpp-has-no-threads
|
||||
// UNSUPPORTED: c++03, c++11
|
||||
|
||||
// This test requires the dylib support introduced in D68480,
|
||||
// which hasn't shipped yet.
|
||||
// XFAIL: use_system_cxx_lib && x86_64-apple
|
||||
// This test requires the dylib support introduced in D68480, which shipped in
|
||||
// macOS 11.0.
|
||||
// XFAIL: use_system_cxx_lib && x86_64-apple-macosx10.15
|
||||
// XFAIL: use_system_cxx_lib && x86_64-apple-macosx10.14
|
||||
// XFAIL: use_system_cxx_lib && x86_64-apple-macosx10.13
|
||||
|
||||
@ -9,9 +9,8 @@
|
||||
// UNSUPPORTED: libcpp-has-no-threads
|
||||
// UNSUPPORTED: c++03, c++11
|
||||
|
||||
// This test requires the dylib support introduced in D68480,
|
||||
// which hasn't shipped yet.
|
||||
// XFAIL: use_system_cxx_lib && x86_64-apple
|
||||
// This test requires the dylib support introduced in D68480, which shipped in
|
||||
// macOS 11.0.
|
||||
// XFAIL: use_system_cxx_lib && x86_64-apple-macosx10.15
|
||||
// XFAIL: use_system_cxx_lib && x86_64-apple-macosx10.14
|
||||
// XFAIL: use_system_cxx_lib && x86_64-apple-macosx10.13
|
||||
|
||||
@ -9,9 +9,8 @@
|
||||
// UNSUPPORTED: libcpp-has-no-threads
|
||||
// UNSUPPORTED: c++03, c++11
|
||||
|
||||
// This test requires the dylib support introduced in D68480,
|
||||
// which hasn't shipped yet.
|
||||
// XFAIL: use_system_cxx_lib && x86_64-apple
|
||||
// This test requires the dylib support introduced in D68480, which shipped in
|
||||
// macOS 11.0.
|
||||
// XFAIL: use_system_cxx_lib && x86_64-apple-macosx10.15
|
||||
// XFAIL: use_system_cxx_lib && x86_64-apple-macosx10.14
|
||||
// XFAIL: use_system_cxx_lib && x86_64-apple-macosx10.13
|
||||
|
||||
@ -9,9 +9,8 @@
|
||||
// UNSUPPORTED: libcpp-has-no-threads
|
||||
// UNSUPPORTED: c++03, c++11
|
||||
|
||||
// This test requires the dylib support introduced in D68480,
|
||||
// which hasn't shipped yet.
|
||||
// XFAIL: use_system_cxx_lib && x86_64-apple
|
||||
// This test requires the dylib support introduced in D68480, which shipped in
|
||||
// macOS 11.0.
|
||||
// XFAIL: use_system_cxx_lib && x86_64-apple-macosx10.15
|
||||
// XFAIL: use_system_cxx_lib && x86_64-apple-macosx10.14
|
||||
// XFAIL: use_system_cxx_lib && x86_64-apple-macosx10.13
|
||||
|
||||
@ -9,9 +9,8 @@
|
||||
// UNSUPPORTED: libcpp-has-no-threads
|
||||
// UNSUPPORTED: c++03, c++11
|
||||
|
||||
// This test requires the dylib support introduced in D68480,
|
||||
// which hasn't shipped yet.
|
||||
// XFAIL: use_system_cxx_lib && x86_64-apple
|
||||
// This test requires the dylib support introduced in D68480, which shipped in
|
||||
// macOS 11.0.
|
||||
// XFAIL: use_system_cxx_lib && x86_64-apple-macosx10.15
|
||||
// XFAIL: use_system_cxx_lib && x86_64-apple-macosx10.14
|
||||
// XFAIL: use_system_cxx_lib && x86_64-apple-macosx10.13
|
||||
|
||||
@ -9,9 +9,8 @@
|
||||
// UNSUPPORTED: libcpp-has-no-threads
|
||||
// UNSUPPORTED: c++03, c++11
|
||||
|
||||
// This test requires the dylib support introduced in D68480,
|
||||
// which hasn't shipped yet.
|
||||
// XFAIL: use_system_cxx_lib && x86_64-apple
|
||||
// This test requires the dylib support introduced in D68480, which shipped in
|
||||
// macOS 11.0.
|
||||
// XFAIL: use_system_cxx_lib && x86_64-apple-macosx10.15
|
||||
// XFAIL: use_system_cxx_lib && x86_64-apple-macosx10.14
|
||||
// XFAIL: use_system_cxx_lib && x86_64-apple-macosx10.13
|
||||
|
||||
@ -9,9 +9,8 @@
|
||||
// UNSUPPORTED: libcpp-has-no-threads
|
||||
// UNSUPPORTED: c++03, c++11
|
||||
|
||||
// This test requires the dylib support introduced in D68480,
|
||||
// which hasn't shipped yet.
|
||||
// XFAIL: use_system_cxx_lib && x86_64-apple
|
||||
// This test requires the dylib support introduced in D68480, which shipped in
|
||||
// macOS 11.0.
|
||||
// XFAIL: use_system_cxx_lib && x86_64-apple-macosx10.15
|
||||
// XFAIL: use_system_cxx_lib && x86_64-apple-macosx10.14
|
||||
// XFAIL: use_system_cxx_lib && x86_64-apple-macosx10.13
|
||||
|
||||
@ -9,9 +9,8 @@
|
||||
// UNSUPPORTED: libcpp-has-no-threads
|
||||
// UNSUPPORTED: c++03, c++11
|
||||
|
||||
// This test requires the dylib support introduced in D68480,
|
||||
// which hasn't shipped yet.
|
||||
// XFAIL: use_system_cxx_lib && x86_64-apple
|
||||
// This test requires the dylib support introduced in D68480, which shipped in
|
||||
// macOS 11.0.
|
||||
// XFAIL: use_system_cxx_lib && x86_64-apple-macosx10.15
|
||||
// XFAIL: use_system_cxx_lib && x86_64-apple-macosx10.14
|
||||
// XFAIL: use_system_cxx_lib && x86_64-apple-macosx10.13
|
||||
|
||||
@ -9,9 +9,8 @@
|
||||
// UNSUPPORTED: libcpp-has-no-threads
|
||||
// UNSUPPORTED: c++03, c++11
|
||||
|
||||
// This test requires the dylib support introduced in D68480,
|
||||
// which hasn't shipped yet.
|
||||
// XFAIL: use_system_cxx_lib && x86_64-apple
|
||||
// This test requires the dylib support introduced in D68480, which shipped in
|
||||
// macOS 11.0.
|
||||
// XFAIL: use_system_cxx_lib && x86_64-apple-macosx10.15
|
||||
// XFAIL: use_system_cxx_lib && x86_64-apple-macosx10.14
|
||||
// XFAIL: use_system_cxx_lib && x86_64-apple-macosx10.13
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user