1configure_lit_site_cfg( 2 ${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.in 3 ${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg 4 ) 5 6set(CFI_TEST_DEPS) 7if(NOT COMPILER_RT_STANDALONE_BUILD) 8 list(APPEND CFI_TEST_DEPS 9 FileCheck 10 clang 11 not 12 ) 13 if(LLVM_ENABLE_PIC AND LLVM_BINUTILS_INCDIR) 14 list(APPEND CFI_TEST_DEPS 15 LLVMgold 16 ) 17 endif() 18 if(APPLE) 19 list(APPEND CFI_TEST_DEPS 20 LTO 21 ) 22 endif() 23endif() 24 25add_lit_testsuite(check-cfi "Running the cfi regression tests" 26 ${CMAKE_CURRENT_BINARY_DIR} 27 DEPENDS ${CFI_TEST_DEPS}) 28 29add_lit_target(check-cfi-and-supported "Running the cfi regression tests" 30 ${CMAKE_CURRENT_BINARY_DIR} 31 PARAMS check_supported=1 32 DEPENDS ${CFI_TEST_DEPS}) 33 34set_target_properties(check-cfi PROPERTIES FOLDER "Tests") 35