[CMake] Add an lld-test-depends target

This builds all dependencies of lld-test/check-lld, without running
the tests. This matches llvm-test-depends and clang-test-depends.

Differential Revision: https://reviews.llvm.org/D51439

llvm-svn: 340943
This commit is contained in:
Martin Storsjo 2018-08-29 17:30:45 +00:00
parent 489993db94
commit bb0a3c911d
1 changed files with 3 additions and 0 deletions

View File

@ -53,6 +53,9 @@ add_lit_testsuite(check-lld "Running lld test suite"
DEPENDS ${LLD_TEST_DEPS}
)
add_custom_target(lld-test-depends DEPENDS ${LLD_TEST_DEPS})
set_target_properties(lld-test-depends PROPERTIES FOLDER "lld tests")
add_lit_testsuites(LLD ${CMAKE_CURRENT_SOURCE_DIR}
PARAMS lld_site_config=${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg
lld_unit_site_config=${CMAKE_CURRENT_BINARY_DIR}/Unit/lit.site.cfg