1 llvm_canonicalize_cmake_booleans(
6 LLD_DEFAULT_LD_LLD_IS_MINGW
9 LLVM_BYE_LINK_INTO_TOOLS
10 LLVM_TOOL_LLVM_DRIVER_BUILD
13 configure_lit_site_cfg(
14 ${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.py.in
15 ${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg.py
17 ${CMAKE_CURRENT_SOURCE_DIR}/lit.cfg.py
30 configure_lit_site_cfg(
31 ${CMAKE_CURRENT_SOURCE_DIR}/Unit/lit.site.cfg.py.in
32 ${CMAKE_CURRENT_BINARY_DIR}/Unit/lit.site.cfg.py
34 ${CMAKE_CURRENT_SOURCE_DIR}/Unit/lit.cfg.py
41 set(LLD_TEST_DEPS lld LLDUnitTests)
42 if (NOT LLD_BUILT_STANDALONE)
43 list(APPEND LLD_TEST_DEPS
77 if (NOT WIN32 AND LLVM_BUILD_EXAMPLES)
78 list(APPEND LLD_TEST_DEPS
84 add_lit_testsuite(check-lld "Running lld test suite"
85 ${CMAKE_CURRENT_BINARY_DIR}
86 DEPENDS ${LLD_TEST_DEPS}
89 add_custom_target(lld-test-depends DEPENDS ${LLD_TEST_DEPS})
90 set_target_properties(lld-test-depends PROPERTIES FOLDER "LLD/Tests")
92 add_lit_testsuites(LLD ${CMAKE_CURRENT_SOURCE_DIR}
93 DEPENDS ${LLD_TEST_DEPS}
96 # Add a legacy target spelling: lld-test
97 add_custom_target(lld-test)
98 add_dependencies(lld-test check-lld)
99 set_target_properties(lld-test PROPERTIES FOLDER "LLD/Tests")