1 llvm_canonicalize_cmake_booleans(
14 LLVM_USE_INTEL_JITEVENTS
17 LLVM_BYE_LINK_INTO_TOOLS
18 LLVM_EXAMPLEIRTRANSFORMS_LINK_INTO_TOOLS
21 LLVM_INLINER_MODEL_AUTOGENERATED
22 LLVM_RAEVICT_MODEL_AUTOGENERATED
23 LLVM_ENABLE_EXPENSIVE_CHECKS
24 LLVM_ENABLE_REVERSE_ITERATION
25 LLVM_INCLUDE_DXIL_TESTS
26 LLVM_TOOL_LLVM_DRIVER_BUILD
29 configure_lit_site_cfg(
30 ${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.py.in
31 ${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg.py
33 ${CMAKE_CURRENT_SOURCE_DIR}/lit.cfg.py
42 configure_lit_site_cfg(
43 ${CMAKE_CURRENT_SOURCE_DIR}/Unit/lit.site.cfg.py.in
44 ${CMAKE_CURRENT_BINARY_DIR}/Unit/lit.site.cfg.py
46 ${CMAKE_CURRENT_SOURCE_DIR}/Unit/lit.cfg.py
54 # Set the depends list as a variable so that it can grow conditionally.
55 # NOTE: Sync the substitutions in test/lit.cfg when adding to this list.
81 llvm-debuginfo-analyzer
95 llvm-install-name-tool
149 set(LLVM_TEST_DEPENDS ${LLVM_TEST_DEPENDS} llvm-lto)
152 if(TARGET llvm-driver)
153 set(LLVM_TEST_DEPENDS ${LLVM_TEST_DEPENDS} llvm-driver)
156 # If Intel JIT events are supported, depend on a tool that tests the listener.
157 if( LLVM_USE_INTEL_JITEVENTS )
158 set(LLVM_TEST_DEPENDS ${LLVM_TEST_DEPENDS} llvm-jitlistener)
159 endif( LLVM_USE_INTEL_JITEVENTS )
162 set(LLVM_TEST_DEPENDS ${LLVM_TEST_DEPENDS} LLVMgold)
166 set(LLVM_TEST_DEPENDS ${LLVM_TEST_DEPENDS} LTO)
169 if(LLVM_BUILD_EXAMPLES)
170 list(APPEND LLVM_TEST_DEPENDS
176 LLJITWithThinLTOSummaries
177 OrcV2CBindingsBasicUsage
178 OrcV2CBindingsAddObjectFile
179 OrcV2CBindingsRemovableCode
181 OrcV2CBindingsVeryLazy
184 list(APPEND LLVM_TEST_DEPENDS
185 LLJITWithRemoteDebugging
189 list(APPEND LLVM_TEST_DEPENDS
196 if(TARGET ocaml_llvm)
197 # Clear all non-OCaml cross-target dependencies when building out-of-tree.
198 if(LLVM_OCAML_OUT_OF_TREE)
199 set(LLVM_TEST_DEPENDS)
202 set(LLVM_TEST_DEPENDS ${LLVM_TEST_DEPENDS}
204 ocaml_llvm_all_backends
208 ocaml_llvm_executionengine
211 ocaml_llvm_passbuilder
213 ocaml_llvm_transform_utils
217 if (LLVM_INCLUDE_DXIL_TESTS)
218 list(APPEND LLVM_TEST_DEPENDS dxil-dis)
221 if(LLVM_ENABLE_HTTPLIB)
222 list(APPEND LLVM_TEST_DEPENDS llvm-debuginfod)
225 add_custom_target(llvm-test-depends DEPENDS ${LLVM_TEST_DEPENDS})
226 set_target_properties(llvm-test-depends PROPERTIES FOLDER "Tests")
229 set(exclude_from_check_all "")
231 set(exclude_from_check_all "EXCLUDE_FROM_CHECK_ALL")
234 add_lit_testsuite(check-llvm "Running the LLVM regression tests"
235 ${CMAKE_CURRENT_BINARY_DIR}
236 ${exclude_from_check_all}
237 DEPENDS ${LLVM_TEST_DEPENDS}
239 set_target_properties(check-llvm PROPERTIES FOLDER "Tests")
241 add_lit_testsuites(LLVM ${CMAKE_CURRENT_SOURCE_DIR}
242 ${exclude_from_check_all}
243 DEPENDS ${LLVM_TEST_DEPENDS}
244 FOLDER "Tests/Subdirectories"
247 # Setup an alias for 'check-all'.
248 add_custom_target(check)
249 add_dependencies(check check-all)
250 set_target_properties(check PROPERTIES FOLDER "Tests")