From 9a5466fd9a5ff6eca81b237073c2155995df2639 Mon Sep 17 00:00:00 2001 From: Vedant Kumar Date: Thu, 15 Mar 2018 01:09:13 +0000 Subject: [PATCH] [test] cmake: Ensure liblldb builds before tests run Without liblldb as a test dependency, tests which link it in from an lldb framework (via Base.buildDriver()) won't work. llvm-svn: 327595 --- lldb/test/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lldb/test/CMakeLists.txt b/lldb/test/CMakeLists.txt index 3b7ba96..c35a336 100644 --- a/lldb/test/CMakeLists.txt +++ b/lldb/test/CMakeLists.txt @@ -40,6 +40,10 @@ if(NOT LLDB_BUILT_STANDALONE) list(APPEND LLDB_TEST_DEPS yaml2obj) endif() +if(TARGET liblldb) + list(APPEND LLDB_TEST_DEPS liblldb) +endif() + # The default architecture with which to compile test executables is the default LLVM target # architecture, which itself defaults to the host architecture. string(TOLOWER "${LLVM_TARGET_ARCH}" LLDB_DEFAULT_TEST_ARCH) -- 2.7.4