1 llvm_canonicalize_cmake_booleans(
5 configure_lit_site_cfg(
6 ${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.py.in
7 ${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg.py
9 ${CMAKE_CURRENT_SOURCE_DIR}/lit.cfg.py
11 configure_lit_site_cfg(
12 ${CMAKE_CURRENT_SOURCE_DIR}/Unit/lit.site.cfg.py.in
13 ${CMAKE_CURRENT_BINARY_DIR}/Unit/lit.site.cfg.py
15 ${CMAKE_CURRENT_SOURCE_DIR}/Unit/lit.cfg.py
19 bolt_site_config=${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg
22 if (BOLT_CLANG_EXE AND NOT "clang" IN_LIST LLVM_ENABLE_PROJECTS)
23 add_executable(clang IMPORTED GLOBAL)
24 set_property(TARGET clang PROPERTY IMPORTED_LOCATION "${BOLT_CLANG_EXE}")
27 if (BOLT_LLD_EXE AND NOT "lld" IN_LIST LLVM_ENABLE_PROJECTS)
28 add_executable(lld IMPORTED GLOBAL)
29 set_property(TARGET lld PROPERTY IMPORTED_LOCATION "${BOLT_LLD_EXE}")
32 list(APPEND BOLT_TEST_DEPS
58 add_custom_target(bolt-test-depends DEPENDS ${BOLT_TEST_DEPS})
59 set_target_properties(bolt-test-depends PROPERTIES FOLDER "BOLT")
61 add_lit_testsuite(check-bolt "Running the BOLT regression tests"
62 ${CMAKE_CURRENT_BINARY_DIR}
63 PARAMS ${BOLT_TEST_PARAMS}
64 DEPENDS ${BOLT_TEST_DEPS}
65 ARGS ${BOLT_TEST_EXTRA_ARGS}
67 set_target_properties(check-bolt PROPERTIES FOLDER "BOLT")
69 add_lit_testsuites(BOLT ${CMAKE_CURRENT_SOURCE_DIR}
70 PARAMS ${BOLT_TEST_PARAMS}
71 DEPENDS ${BOLT_TEST_DEPS}