authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-08-18 15:27:00-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-08-18 15:27:00-07:00
log87d5db057b53fc643ac0c316653a46ada54b3c91
tree296250ab1f065ce1516a10098d9ecf9055512dfb
parent92b69215e63a3303a5e904ab332e2eec236e0ed2

update libcxx to latest llvm release/13.x

rc1 + 98feb20df14e6cf9ce77f097ceb8dd188c9070a7

2 files changed, 12 insertions(+), 1 deletions(-)

lib/libcxx/include/__config+11
......@@ -352,6 +352,16 @@
352352# define _LIBCPP_NO_CFI
353353#endif
354354
355// If the compiler supports using_if_exists, pretend we have those functions and they'll
356// be picked up if the C library provides them.
357//
358// TODO: Once we drop support for Clang 12, we can assume the compiler supports using_if_exists
359// for platforms that don't have a conforming C11 library, so we can drop this whole thing.
360#if __has_attribute(using_if_exists)
361# define _LIBCPP_HAS_TIMESPEC_GET
362# define _LIBCPP_HAS_QUICK_EXIT
363# define _LIBCPP_HAS_ALIGNED_ALLOC
364#else
355365#if (defined(__ISO_C_VISIBLE) && (__ISO_C_VISIBLE >= 2011)) || __cplusplus >= 201103L
356366# if defined(__FreeBSD__)
357367# define _LIBCPP_HAS_ALIGNED_ALLOC
......@@ -406,6 +416,7 @@
406416# endif
407417# endif // __APPLE__
408418#endif
419#endif // __has_attribute(using_if_exists)
409420
410421#ifndef _LIBCPP_CXX03_LANG
411422# define _LIBCPP_ALIGNOF(_Tp) alignof(_Tp)
lib/libcxx/include/ctime+1-1
......@@ -59,7 +59,7 @@ int timespec_get( struct timespec *ts, int base); // C++17
5959// we're detecting this here instead of in <__config> because we can't include
6060// system headers from <__config>, since it leads to circular module dependencies.
6161// This is also meant to be a very temporary workaround until the SDKs are fixed.
62#if defined(__APPLE__)
62#if defined(__APPLE__) && !__has_attribute(using_if_exists)
6363# include <sys/cdefs.h>
6464# if defined(_LIBCPP_HAS_TIMESPEC_GET) && (__DARWIN_C_LEVEL < __DARWIN_C_FULL)
6565# define _LIBCPP_HAS_TIMESPEC_GET_NOT_ACTUALLY_PROVIDED