1*0a6a1f1dSLionel Sambucset(PROFILE_LIT_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}) 2*0a6a1f1dSLionel Sambucset(PROFILE_LIT_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}) 3*0a6a1f1dSLionel Sambuc 4*0a6a1f1dSLionel Sambucset(PROFILE_TEST_DEPS ${SANITIZER_COMMON_LIT_TEST_DEPS}) 5*0a6a1f1dSLionel Sambucif(NOT COMPILER_RT_STANDALONE_BUILD) 6*0a6a1f1dSLionel Sambuc list(APPEND PROFILE_TEST_DEPS profile llvm-profdata) 7*0a6a1f1dSLionel Sambucendif() 8*0a6a1f1dSLionel Sambuc 9*0a6a1f1dSLionel Sambucconfigure_lit_site_cfg( 10*0a6a1f1dSLionel Sambuc ${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.in 11*0a6a1f1dSLionel Sambuc ${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg 12*0a6a1f1dSLionel Sambuc ) 13*0a6a1f1dSLionel Sambucadd_lit_testsuite(check-profile "Running the profile tests" 14*0a6a1f1dSLionel Sambuc ${CMAKE_CURRENT_BINARY_DIR} 15*0a6a1f1dSLionel Sambuc DEPENDS ${PROFILE_TEST_DEPS}) 16*0a6a1f1dSLionel Sambucset_target_properties(check-profile PROPERTIES FOLDER "Profile tests") 17