1 llvm_canonicalize_cmake_booleans(
6 LLD_DEFAULT_LD_LLD_IS_MINGW
9 LLVM_BYE_LINK_INTO_TOOLS
12 configure_lit_site_cfg(
13 ${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.py.in
14 ${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg.py
16 ${CMAKE_CURRENT_SOURCE_DIR}/lit.cfg.py
29 configure_lit_site_cfg(
30 ${CMAKE_CURRENT_SOURCE_DIR}/Unit/lit.site.cfg.py.in
31 ${CMAKE_CURRENT_BINARY_DIR}/Unit/lit.site.cfg.py
33 ${CMAKE_CURRENT_SOURCE_DIR}/Unit/lit.cfg.py
40 set(LLD_TEST_DEPS lld)
41 if (NOT LLD_BUILT_STANDALONE)
42 list(APPEND LLD_TEST_DEPS
75 if (NOT WIN32 AND LLVM_BUILD_EXAMPLES)
76 list(APPEND LLD_TEST_DEPS
82 add_lit_testsuite(check-lld "Running lld test suite"
83 ${CMAKE_CURRENT_BINARY_DIR}
84 DEPENDS ${LLD_TEST_DEPS}
86 set_target_properties(check-lld PROPERTIES FOLDER "lld tests")
88 add_custom_target(lld-test-depends DEPENDS ${LLD_TEST_DEPS})
89 set_target_properties(lld-test-depends PROPERTIES FOLDER "lld tests")
91 add_lit_testsuites(LLD ${CMAKE_CURRENT_SOURCE_DIR}
92 DEPENDS ${LLD_TEST_DEPS}
95 # Add a legacy target spelling: lld-test
96 add_custom_target(lld-test)
97 add_dependencies(lld-test check-lld)
98 set_target_properties(lld-test PROPERTIES FOLDER "lld tests")