[libcxx-commits] [libcxx] 871f96e - [libcxx] remove checks for __STDCPP_THREADS__ as it is defined by compiler

Zequan Wu via libcxx-commits libcxx-commits at lists.llvm.org
Mon Nov 30 16:37:04 PST 2020


Author: Zequan Wu
Date: 2020-11-30T16:36:47-08:00
New Revision: 871f96eed3797061c8b1c82fb77d077d110a2da7

URL: https://github.com/llvm/llvm-project/commit/871f96eed3797061c8b1c82fb77d077d110a2da7
DIFF: https://github.com/llvm/llvm-project/commit/871f96eed3797061c8b1c82fb77d077d110a2da7.diff

LOG: [libcxx] remove checks for __STDCPP_THREADS__ as it is defined by compiler

Differential Revision: https://reviews.llvm.org/D92349

Added: 
    

Modified: 
    libcxx/include/__config

Removed: 
    


################################################################################
diff  --git a/libcxx/include/__config b/libcxx/include/__config
index de40ffc3162e..0b850f192d54 100644
--- a/libcxx/include/__config
+++ b/libcxx/include/__config
@@ -1152,10 +1152,6 @@ _LIBCPP_FUNC_VIS extern "C" void __sanitizer_annotate_contiguous_container(
        _LIBCPP_HAS_NO_THREADS is defined.
 #endif
 
-#if defined(__STDCPP_THREADS__) && defined(_LIBCPP_HAS_NO_THREADS)
-#error _LIBCPP_HAS_NO_THREADS cannot be set when __STDCPP_THREADS__ is set.
-#endif
-
 #if !defined(_LIBCPP_HAS_NO_THREADS) && !defined(__STDCPP_THREADS__)
 #define __STDCPP_THREADS__ 1
 #endif


        


More information about the libcxx-commits mailing list