From 9050d0fb593c60628f47caa122c01ea1dc7a1bf5 Mon Sep 17 00:00:00 2001 From: Petr Hosek Date: Thu, 16 Jan 2020 12:12:38 -0800 Subject: [PATCH] [libcxx] Temporarily switch back to pthread backend for Fuchsia We switched to C11 thread API on Fuchsia in ab9aefe, but further testing showed that Fuchsia's C11 mutex implementation needs a few improvements for this to be usable, so we temporarily switch back to the pthread implementation until those issues are addressed. Differential Revision: https://reviews.llvm.org/D72862 --- libcxx/include/__config | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libcxx/include/__config b/libcxx/include/__config index d9132d13..84cd46b 100644 --- a/libcxx/include/__config +++ b/libcxx/include/__config @@ -1125,7 +1125,8 @@ _LIBCPP_FUNC_VIS extern "C" void __sanitizer_annotate_contiguous_container( (defined(__MINGW32__) && __has_include()) # define _LIBCPP_HAS_THREAD_API_PTHREAD # elif defined(__Fuchsia__) -# define _LIBCPP_HAS_THREAD_API_C11 + // TODO(44575): Switch to C11 thread API when possible. +# define _LIBCPP_HAS_THREAD_API_PTHREAD # elif defined(_LIBCPP_WIN32API) # define _LIBCPP_HAS_THREAD_API_WIN32 # else -- 2.7.4