[Lldb-commits] [lldb] r327595 - [test] cmake: Ensure liblldb builds before tests run
Vedant Kumar via lldb-commits
lldb-commits at lists.llvm.org
Wed Mar 14 18:09:14 PDT 2018
Author: vedantk
Date: Wed Mar 14 18:09:13 2018
New Revision: 327595
URL: http://llvm.org/viewvc/llvm-project?rev=327595&view=rev
Log:
[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.
Modified:
lldb/trunk/test/CMakeLists.txt
Modified: lldb/trunk/test/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/CMakeLists.txt?rev=327595&r1=327594&r2=327595&view=diff
==============================================================================
--- lldb/trunk/test/CMakeLists.txt (original)
+++ lldb/trunk/test/CMakeLists.txt Wed Mar 14 18:09:13 2018
@@ -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)
More information about the lldb-commits
mailing list