[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
This commit is contained in:
parent
5721ee48a2
commit
9a5466fd9a
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue