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 @@...@@ -352,6 +352,16 @@
352# define _LIBCPP_NO_CFI352# define _LIBCPP_NO_CFI
353#endif353#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
355#if (defined(__ISO_C_VISIBLE) && (__ISO_C_VISIBLE >= 2011)) || __cplusplus >= 201103L365#if (defined(__ISO_C_VISIBLE) && (__ISO_C_VISIBLE >= 2011)) || __cplusplus >= 201103L
356# if defined(__FreeBSD__)366# if defined(__FreeBSD__)
357# define _LIBCPP_HAS_ALIGNED_ALLOC367# define _LIBCPP_HAS_ALIGNED_ALLOC
...@@ -406,6 +416,7 @@...@@ -406,6 +416,7 @@
406# endif416# endif
407# endif // __APPLE__417# endif // __APPLE__
408#endif418#endif
419#endif // __has_attribute(using_if_exists)
409420
410#ifndef _LIBCPP_CXX03_LANG421#ifndef _LIBCPP_CXX03_LANG
411# define _LIBCPP_ALIGNOF(_Tp) alignof(_Tp)422# 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...@@ -59,7 +59,7 @@ int timespec_get( struct timespec *ts, int base); // C++17
59// we're detecting this here instead of in <__config> because we can't include59// we're detecting this here instead of in <__config> because we can't include
60// system headers from <__config>, since it leads to circular module dependencies.60// system headers from <__config>, since it leads to circular module dependencies.
61// This is also meant to be a very temporary workaround until the SDKs are fixed.61// 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)
63# include <sys/cdefs.h>63# include <sys/cdefs.h>
64# if defined(_LIBCPP_HAS_TIMESPEC_GET) && (__DARWIN_C_LEVEL < __DARWIN_C_FULL)64# if defined(_LIBCPP_HAS_TIMESPEC_GET) && (__DARWIN_C_LEVEL < __DARWIN_C_FULL)
65# define _LIBCPP_HAS_TIMESPEC_GET_NOT_ACTUALLY_PROVIDED65# define _LIBCPP_HAS_TIMESPEC_GET_NOT_ACTUALLY_PROVIDED