1 llvm_canonicalize_cmake_booleans(
15 LLVM_USE_INTEL_JITEVENTS
18 LLVM_BYE_LINK_INTO_TOOLS
21 LLVM_INLINER_MODEL_AUTOGENERATED
22 LLVM_RAEVICT_MODEL_AUTOGENERATED
23 LLVM_ENABLE_EXPENSIVE_CHECKS
24 LLVM_INCLUDE_DXIL_TESTS
25 LLVM_TOOL_LLVM_DRIVER_BUILD
28 configure_lit_site_cfg(
29 ${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.py.in
30 ${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg.py
32 ${CMAKE_CURRENT_SOURCE_DIR}/lit.cfg.py
41 configure_lit_site_cfg(
42 ${CMAKE_CURRENT_SOURCE_DIR}/Unit/lit.site.cfg.py.in
43 ${CMAKE_CURRENT_BINARY_DIR}/Unit/lit.site.cfg.py
45 ${CMAKE_CURRENT_SOURCE_DIR}/Unit/lit.cfg.py
53 # Set the depends list as a variable so that it can grow conditionally.
54 # NOTE: Sync the substitutions in test/lit.cfg when adding to this list.
93 llvm-install-name-tool
120 llvm-remark-size-diff
147 set(LLVM_TEST_DEPENDS ${LLVM_TEST_DEPENDS} llvm-lto)
150 if(TARGET llvm-driver)
151 set(LLVM_TEST_DEPENDS ${LLVM_TEST_DEPENDS} llvm-driver)
154 # If Intel JIT events are supported, depend on a tool that tests the listener.
155 if( LLVM_USE_INTEL_JITEVENTS )
156 set(LLVM_TEST_DEPENDS ${LLVM_TEST_DEPENDS} llvm-jitlistener)
157 endif( LLVM_USE_INTEL_JITEVENTS )
160 set(LLVM_TEST_DEPENDS ${LLVM_TEST_DEPENDS} LLVMgold)
164 set(LLVM_TEST_DEPENDS ${LLVM_TEST_DEPENDS} llvm-go)
168 set(LLVM_TEST_DEPENDS ${LLVM_TEST_DEPENDS} LTO)
171 if(LLVM_BUILD_EXAMPLES)
172 list(APPEND LLVM_TEST_DEPENDS
178 LLJITWithThinLTOSummaries
179 OrcV2CBindingsBasicUsage
180 OrcV2CBindingsAddObjectFile
181 OrcV2CBindingsRemovableCode
182 OrcV2CBindingsReflectProcessSymbols
184 OrcV2CBindingsVeryLazy
187 list(APPEND LLVM_TEST_DEPENDS
188 LLJITWithRemoteDebugging
192 list(APPEND LLVM_TEST_DEPENDS
198 if(TARGET ocaml_llvm)
199 # Clear all non-OCaml cross-target dependencies when building out-of-tree.
200 if(LLVM_OCAML_OUT_OF_TREE)
201 set(LLVM_TEST_DEPENDS)
204 set(LLVM_TEST_DEPENDS ${LLVM_TEST_DEPENDS}
206 ocaml_llvm_all_backends
210 ocaml_llvm_executionengine
215 ocaml_llvm_passmgr_builder
216 ocaml_llvm_scalar_opts
217 ocaml_llvm_transform_utils
222 if (LLVM_INCLUDE_DXIL_TESTS)
223 list(APPEND LLVM_TEST_DEPENDS dxil-dis)
226 add_custom_target(llvm-test-depends DEPENDS ${LLVM_TEST_DEPENDS})
227 set_target_properties(llvm-test-depends PROPERTIES FOLDER "Tests")
230 set(exclude_from_check_all "")
232 set(exclude_from_check_all "EXCLUDE_FROM_CHECK_ALL")
235 add_lit_testsuite(check-llvm "Running the LLVM regression tests"
236 ${CMAKE_CURRENT_BINARY_DIR}
237 ${exclude_from_check_all}
238 DEPENDS ${LLVM_TEST_DEPENDS}
240 set_target_properties(check-llvm PROPERTIES FOLDER "Tests")
242 add_lit_testsuites(LLVM ${CMAKE_CURRENT_SOURCE_DIR}
243 ${exclude_from_check_all}
244 DEPENDS ${LLVM_TEST_DEPENDS}
245 FOLDER "Tests/Subdirectories"
248 # Setup an alias for 'check-all'.
249 add_custom_target(check)
250 add_dependencies(check check-all)
251 set_target_properties(check PROPERTIES FOLDER "Tests")