1 llvm_canonicalize_cmake_booleans(
14 LLVM_USE_INTEL_JITEVENTS
17 LLVM_BYE_LINK_INTO_TOOLS
20 LLVM_ENABLE_EXPENSIVE_CHECKS
23 configure_lit_site_cfg(
24 ${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.py.in
25 ${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg.py
27 ${CMAKE_CURRENT_SOURCE_DIR}/lit.cfg.py
36 configure_lit_site_cfg(
37 ${CMAKE_CURRENT_SOURCE_DIR}/Unit/lit.site.cfg.py.in
38 ${CMAKE_CURRENT_BINARY_DIR}/Unit/lit.site.cfg.py
40 ${CMAKE_CURRENT_SOURCE_DIR}/Unit/lit.cfg.py
48 # Set the depends list as a variable so that it can grow conditionally.
49 # NOTE: Sync the substitutions in test/lit.cfg when adding to this list.
85 llvm-install-name-tool
137 set(LLVM_TEST_DEPENDS ${LLVM_TEST_DEPENDS} llvm-lto)
140 # If Intel JIT events are supported, depend on a tool that tests the listener.
141 if( LLVM_USE_INTEL_JITEVENTS )
142 set(LLVM_TEST_DEPENDS ${LLVM_TEST_DEPENDS} llvm-jitlistener)
143 endif( LLVM_USE_INTEL_JITEVENTS )
146 set(LLVM_TEST_DEPENDS ${LLVM_TEST_DEPENDS} LLVMgold)
150 set(LLVM_TEST_DEPENDS ${LLVM_TEST_DEPENDS} llvm-go)
154 set(LLVM_TEST_DEPENDS ${LLVM_TEST_DEPENDS} LTO)
157 if(LLVM_BUILD_EXAMPLES)
158 list(APPEND LLVM_TEST_DEPENDS
164 LLJITWithThinLTOSummaries
165 OrcV2CBindingsBasicUsage
166 OrcV2CBindingsAddObjectFile
167 OrcV2CBindingsRemovableCode
168 OrcV2CBindingsReflectProcessSymbols
170 OrcV2CBindingsVeryLazy
173 list(APPEND LLVM_TEST_DEPENDS
174 LLJITWithRemoteDebugging
178 list(APPEND LLVM_TEST_DEPENDS
184 if(TARGET ocaml_llvm)
185 # Clear all non-OCaml cross-target dependencies when building out-of-tree.
186 if(LLVM_OCAML_OUT_OF_TREE)
187 set(LLVM_TEST_DEPENDS)
190 set(LLVM_TEST_DEPENDS ${LLVM_TEST_DEPENDS}
192 ocaml_llvm_all_backends
196 ocaml_llvm_executionengine
201 ocaml_llvm_passmgr_builder
202 ocaml_llvm_scalar_opts
203 ocaml_llvm_transform_utils
208 add_custom_target(llvm-test-depends DEPENDS ${LLVM_TEST_DEPENDS})
209 set_target_properties(llvm-test-depends PROPERTIES FOLDER "Tests")
212 set(exclude_from_check_all "")
214 set(exclude_from_check_all "EXCLUDE_FROM_CHECK_ALL")
217 add_lit_testsuite(check-llvm "Running the LLVM regression tests"
218 ${CMAKE_CURRENT_BINARY_DIR}
219 ${exclude_from_check_all}
220 DEPENDS ${LLVM_TEST_DEPENDS}
222 set_target_properties(check-llvm PROPERTIES FOLDER "Tests")
224 add_lit_testsuites(LLVM ${CMAKE_CURRENT_SOURCE_DIR}
225 ${exclude_from_check_all}
226 DEPENDS ${LLVM_TEST_DEPENDS}
229 # Setup an alias for 'check-all'.
230 add_custom_target(check)
231 add_dependencies(check check-all)
232 set_target_properties(check PROPERTIES FOLDER "Tests")