[libcxxabi] r278058 - Do not depend on unwind when building standalone

Petr Hosek via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 8 15:09:55 PDT 2016


Author: phosek
Date: Mon Aug  8 17:09:54 2016
New Revision: 278058

URL: http://llvm.org/viewvc/llvm-project?rev=278058&view=rev
Log:
Do not depend on unwind when building standalone

When libcxxabi is being built standalone, unwind dependency is not
available, so do not use it even when LLVM unwinder is being
requested.

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

Modified:
    libcxxabi/trunk/test/CMakeLists.txt

Modified: libcxxabi/trunk/test/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/test/CMakeLists.txt?rev=278058&r1=278057&r2=278058&view=diff
==============================================================================
--- libcxxabi/trunk/test/CMakeLists.txt (original)
+++ libcxxabi/trunk/test/CMakeLists.txt Mon Aug  8 17:09:54 2016
@@ -36,10 +36,9 @@ endif()
 
 if (NOT LIBCXXABI_BUILT_STANDALONE)
   list(APPEND LIBCXXABI_TEST_DEPS cxx)
-endif()
-
-if (LIBCXXABI_USE_LLVM_UNWINDER)
-  list(APPEND LIBCXXABI_TEST_DEPS unwind)
+  if (LIBCXXABI_USE_LLVM_UNWINDER)
+    list(APPEND LIBCXXABI_TEST_DEPS unwind)
+  endif()
 endif()
 
 add_lit_testsuite(check-libcxxabi "Running libcxxabi tests"




More information about the cfe-commits mailing list