1 llvm_canonicalize_cmake_booleans(
6 LLD_DEFAULT_LD_LLD_IS_MINGW
10 LLVM_BYE_LINK_INTO_TOOLS
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
20 set(LLD_TEST_DEPS lld)
21 if (NOT LLD_BUILT_STANDALONE)
22 list(APPEND LLD_TEST_DEPS
53 if (NOT WIN32 AND LLVM_BUILD_EXAMPLES)
54 list(APPEND LLD_TEST_DEPS
60 add_lit_testsuite(check-lld "Running lld test suite"
61 ${CMAKE_CURRENT_BINARY_DIR}
62 DEPENDS ${LLD_TEST_DEPS}
65 add_custom_target(lld-test-depends DEPENDS ${LLD_TEST_DEPS})
66 set_target_properties(lld-test-depends PROPERTIES FOLDER "lld tests")
68 add_lit_testsuites(LLD ${CMAKE_CURRENT_SOURCE_DIR}
69 DEPENDS ${LLD_TEST_DEPS}
72 set_target_properties(check-lld PROPERTIES FOLDER "lld tests")
74 # Add a legacy target spelling: lld-test
75 add_custom_target(lld-test)
76 add_dependencies(lld-test check-lld)
77 set_target_properties(lld-test PROPERTIES FOLDER "lld tests")