[clang][dataflow][NFC] Fix stale comments. (#71654)
[llvm-project.git] / compiler-rt / test / xray / CMakeLists.txt
blobb97659ae08f9bd71b53f113d5cd411f65bea8ca8
1 set(XRAY_LIT_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
3 set(XRAY_TESTSUITES)
4 set(XRAY_FDR_TESTSUITES)
6 set(XRAY_TEST_DEPS ${SANITIZER_COMMON_LIT_TEST_DEPS})
7 set(XRAY_FDR_TEST_DEPS ${SANITIZER_COMMON_LIT_TEST_DEPS})
9 if(NOT COMPILER_RT_STANDALONE_BUILD AND COMPILER_RT_BUILD_XRAY AND
10    COMPILER_RT_HAS_XRAY)
11   list(APPEND XRAY_TEST_DEPS xray llvm-xray)
12 endif()
14 set(XRAY_TEST_ARCH ${XRAY_SUPPORTED_ARCH})
15 if (COMPILER_RT_BUILD_XRAY AND COMPILER_RT_HAS_XRAY)
16   foreach(arch ${XRAY_TEST_ARCH})
17     set(XRAY_TEST_TARGET_ARCH ${arch})
18     string(TOLOWER "-${arch}-${OS_NAME}" XRAY_TEST_CONFIG_SUFFIX)
19     get_test_cc_for_arch(${arch} XRAY_TEST_TARGET_CC XRAY_TEST_TARGET_CFLAGS)
20     string(TOUPPER ${arch} ARCH_UPPER_CASE)
21     set(CONFIG_NAME ${ARCH_UPPER_CASE}${OS_NAME}Config)
23     configure_lit_site_cfg(
24       ${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.py.in
25       ${CMAKE_CURRENT_BINARY_DIR}/${CONFIG_NAME}/lit.site.cfg.py)
26     list(APPEND XRAY_TESTSUITES ${CMAKE_CURRENT_BINARY_DIR}/${CONFIG_NAME})
27   endforeach()
28 endif()
30 add_lit_testsuite(check-xray "Running the XRay tests"
31   ${XRAY_TESTSUITES}
32   DEPENDS ${XRAY_TEST_DEPS})
33 set_target_properties(check-xray PROPERTIES FOLDER "Compiler-RT Misc")