[libcxxabi] r284294 - Don't compile cxa_thread_atexit.cpp with -DLIBCXX_ENABLE_THREADS=OFF
Vitaly Buka via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 14 16:51:41 PDT 2016
Author: vitalybuka
Date: Fri Oct 14 18:51:41 2016
New Revision: 284294
URL: http://llvm.org/viewvc/llvm-project?rev=284294&view=rev
Log:
Don't compile cxa_thread_atexit.cpp with -DLIBCXX_ENABLE_THREADS=OFF
Reviewers: rmaprath
Subscribers: beanz, mgorny
Differential Revision: https://reviews.llvm.org/D25636
Modified:
libcxxabi/trunk/src/CMakeLists.txt
Modified: libcxxabi/trunk/src/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/src/CMakeLists.txt?rev=284294&r1=284293&r2=284294&view=diff
==============================================================================
--- libcxxabi/trunk/src/CMakeLists.txt (original)
+++ libcxxabi/trunk/src/CMakeLists.txt Fri Oct 14 18:51:41 2016
@@ -25,7 +25,7 @@ else()
list(APPEND LIBCXXABI_SOURCES cxa_noexception.cpp)
endif()
-if (UNIX AND NOT (APPLE OR CYGWIN))
+if (LIBCXXABI_ENABLE_THREADS AND UNIX AND NOT (APPLE OR CYGWIN))
list(APPEND LIBCXXABI_SOURCES cxa_thread_atexit.cpp)
endif()
More information about the cfe-commits
mailing list