summaryrefslogtreecommitdiffstats
path: root/lldb
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2018-03-15 01:09:13 +0000
committerVedant Kumar <vsk@apple.com>2018-03-15 01:09:13 +0000
commit9a5466fd9a5ff6eca81b237073c2155995df2639 (patch)
tree261ac95c155137330731d6851b2da9d27bcc6f2c /lldb
parent5721ee48a2a8f9202a21936747090115c9abf584 (diff)
downloadbcm5719-llvm-9a5466fd9a5ff6eca81b237073c2155995df2639.tar.gz
bcm5719-llvm-9a5466fd9a5ff6eca81b237073c2155995df2639.zip
[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
Diffstat (limited to 'lldb')
-rw-r--r--lldb/test/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/test/CMakeLists.txt b/lldb/test/CMakeLists.txt
index 3b7ba961cca..c35a3367514 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)
OpenPOWER on IntegriCloud