[libcxx-commits] [libcxxabi] ea23cc7 - [libc++abi] Don't re-define _LIBCPP_HAS_NO_THREADS in single-threaded mode

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Wed Nov 17 07:59:45 PST 2021


Author: Louis Dionne
Date: 2021-11-17T10:59:39-05:00
New Revision: ea23cc7120af81f52c50e1008127501da5ca63f3

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

LOG: [libc++abi] Don't re-define _LIBCPP_HAS_NO_THREADS in single-threaded mode

Libc++ already defines the macro inside its __config_site header, so
libc++abi doesn't need to do it. Doing it just leads to -Wmacro-redefined
warnings when building libc++abi.

Added: 
    

Modified: 
    libcxxabi/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/libcxxabi/CMakeLists.txt b/libcxxabi/CMakeLists.txt
index 79862b4a04933..518ae0e5e4a18 100644
--- a/libcxxabi/CMakeLists.txt
+++ b/libcxxabi/CMakeLists.txt
@@ -417,7 +417,6 @@ if (NOT LIBCXXABI_ENABLE_THREADS)
                         " is also set to ON.")
   endif()
   add_definitions(-D_LIBCXXABI_HAS_NO_THREADS)
-  add_definitions(-D_LIBCPP_HAS_NO_THREADS)
 endif()
 
 if (LIBCXXABI_HAS_EXTERNAL_THREAD_API)


        


More information about the libcxx-commits mailing list