Other LLVM projects use the suffix `-depends` for the test dependencies, however LLDB uses `-deps` and seems to be the only project under the LLVM to do so. In order to make the projects more homogeneous, switch all the references to `lldb-test-deps` to `lldb-test-depends`. Additionally, provide a compatibility target with the old name and depending on the new name, in order to not break anyone workflow. Reviewed By: JDevlieghere Differential Revision: https://reviews.llvm.org/D102889
18 lines
514 B
CMake
18 lines
514 B
CMake
add_custom_target(lldb-unit-test-deps)
|
|
add_dependencies(lldb-unit-test-deps lldb-test-depends)
|
|
|
|
add_lit_testsuites(LLDB-UNIT
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
DEPENDS lldb-unit-test-deps)
|
|
|
|
configure_lit_site_cfg(
|
|
${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.py.in
|
|
${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg.py
|
|
MAIN_CONFIG
|
|
${CMAKE_CURRENT_SOURCE_DIR}/lit.cfg.py)
|
|
|
|
add_lit_testsuite(check-lldb-unit "Running lldb unit test suite"
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
EXCLUDE_FROM_CHECK_ALL
|
|
DEPENDS lldb-unit-test-deps)
|