Do not depend on unwind when building standalone
authorPetr Hosek <phosek@chromium.org>
Mon, 8 Aug 2016 22:09:54 +0000 (22:09 +0000)
committerPetr Hosek <phosek@chromium.org>
Mon, 8 Aug 2016 22:09:54 +0000 (22:09 +0000)
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

llvm-svn: 278058

libcxxabi/test/CMakeLists.txt

index 31b5d1d..3a489bf 100644 (file)
@@ -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"