diff options
author | Vitaly Buka <vitalybuka@google.com> | 2016-10-14 23:51:41 +0000 |
---|---|---|
committer | Vitaly Buka <vitalybuka@google.com> | 2016-10-14 23:51:41 +0000 |
commit | b8e9603acdf4d25cdc9b0bc0504ce3255c5da254 (patch) | |
tree | 4be086cf12a06242700ddcd0160f22b614d1f0b9 | |
parent | 9d2a16b9b19bb3c63f7cba894fa1043b1487768d (diff) | |
download | bcm5719-llvm-b8e9603acdf4d25cdc9b0bc0504ce3255c5da254.tar.gz bcm5719-llvm-b8e9603acdf4d25cdc9b0bc0504ce3255c5da254.zip |
Don't compile cxa_thread_atexit.cpp with -DLIBCXX_ENABLE_THREADS=OFF
Reviewers: rmaprath
Subscribers: beanz, mgorny
Differential Revision: https://reviews.llvm.org/D25636
llvm-svn: 284294
-rw-r--r-- | libcxxabi/src/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxxabi/src/CMakeLists.txt b/libcxxabi/src/CMakeLists.txt index 2e08aa34e35..a45c11b676c 100644 --- a/libcxxabi/src/CMakeLists.txt +++ b/libcxxabi/src/CMakeLists.txt @@ -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() |