Support thread local storage

This commit is contained in:
Justine Tunney 2022-05-16 13:20:08 -07:00
parent 91ee2b19d4
commit 55de4ca6b5
197 changed files with 1483 additions and 874 deletions

View file

@ -69,7 +69,7 @@ THIRD_PARTY_LIBCXX_A_SRCS_CC = \
THIRD_PARTY_LIBCXX_A_SRCS = \
$(THIRD_PARTY_LIBCXX_A_SRCS_S) \
$(THIRD_PARTY_LIBCXX_A_SRCS_C)
$(THIRD_PARTY_LIBCXX_A_SRCS_CC)
THIRD_PARTY_LIBCXX_A_OBJS = \
$(THIRD_PARTY_LIBCXX_A_SRCS_S:%.S=o/$(MODE)/%.o) \

View file

@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
#include "libc/rand/rand.h"
#include "third_party/libcxx/__config"
#if defined(_LIBCPP_USING_WIN32_RANDOM)
@ -24,15 +25,6 @@
#include "third_party/libcxx/stdio.h"
#include "third_party/libcxx/stdlib.h"
#if defined(_LIBCPP_USING_GETENTROPY)
#include "libc/isystem/sys/random.h"
#elif defined(_LIBCPP_USING_DEV_RANDOM)
#include "third_party/libcxx/fcntl.h"
#include "third_party/libcxx/unistd.h"
#elif defined(_LIBCPP_USING_NACL_RANDOM)
#include "third_party/libcxx/nacl/nacl_random.h"
#endif
_LIBCPP_BEGIN_NAMESPACE_STD
#if defined(_LIBCPP_USING_GETENTROPY)

View file

@ -9,12 +9,6 @@
#include "third_party/libcxx/refstring.hh"
#include "third_party/libcxx/string"
/* For _LIBCPPABI_VERSION */
#if !defined(_LIBCPP_BUILDING_HAS_NO_ABI_LIBRARY) && \
(defined(LIBCXX_BUILDING_LIBCXXABI) || defined(LIBCXXRT))
#include "third_party/libcxx/cxxabi.h"
#endif
static_assert(sizeof(std::__libcpp_refstring) == sizeof(const char*), "");
namespace std // purposefully not using versioning namespace

View file

@ -19,10 +19,6 @@
#include "third_party/libcxx/string.h"
#include "third_party/libcxx/__debug"
#if defined(__ANDROID__)
#include "third_party/libcxx/android/api-level.h"
#endif
_LIBCPP_BEGIN_NAMESPACE_STD
// class error_category