[libcxx-commits] [libcxx] 6389974 - [libc++] Don't use aligned_alloc on iOS versions before 13 (#110315)
via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Sep 27 13:11:51 PDT 2024
Author: Un1q32
Date: 2024-09-27T16:11:47-04:00
New Revision: 63899748738ce7449e46eebb1aeb7909f2fdea2b
URL: https://github.com/llvm/llvm-project/commit/63899748738ce7449e46eebb1aeb7909f2fdea2b
DIFF: https://github.com/llvm/llvm-project/commit/63899748738ce7449e46eebb1aeb7909f2fdea2b.diff
LOG: [libc++] Don't use aligned_alloc on iOS versions before 13 (#110315)
There's a check here to not use aligned_alloc on macOS versions before
10.15, this patch adds an equivalent check that tests for iOS 13.
Added:
Modified:
libcxx/include/__config
Removed:
################################################################################
diff --git a/libcxx/include/__config b/libcxx/include/__config
index f90c966aad6950..0d71264611ff66 100644
--- a/libcxx/include/__config
+++ b/libcxx/include/__config
@@ -649,6 +649,10 @@ typedef __char32_t char32_t;
__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 101500)
# define _LIBCPP_HAS_NO_C11_ALIGNED_ALLOC
# endif
+# if (defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) && \
+ __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ < 130000)
+# define _LIBCPP_HAS_NO_C11_ALIGNED_ALLOC
+# endif
# elif defined(__ANDROID__) && __ANDROID_API__ < 28
// Android only provides aligned_alloc when targeting API 28 or higher.
# define _LIBCPP_HAS_NO_C11_ALIGNED_ALLOC
More information about the libcxx-commits
mailing list