[libc] Switch to using the generic `<gpuintrin.h>` implementations (#121810)
[llvm-project.git] / compiler-rt / test / metadata / CMakeLists.txt
blob0a1c6a4ae9eef4da5ca7cfcf1da086a1f07d5624
1 if(CAN_TARGET_x86_64)
2   set(TEST_ARCH ${X86_64})
4   set(METADATA_LIT_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
5   set(METADATA_LIT_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR})
7   set(METADATA_TEST_DEPS ${SANITIZER_COMMON_LIT_TEST_DEPS})
8   list(APPEND METADATA_TEST_DEPS asan ubsan)
10   set(SANITIZER_COMMON_TEST_TARGET_ARCH ${X86_64})
11   get_test_cc_for_arch(x86_64 METADATA_TEST_TARGET_CC METADATA_TEST_TARGET_CFLAGS)
12   configure_lit_site_cfg(
13     ${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.py.in
14     ${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg.py)
16   add_lit_testsuite(check-sanmd "Running the SanitizerBinaryMetadata tests"
17     ${CMAKE_CURRENT_BINARY_DIR}
18     DEPENDS ${METADATA_TEST_DEPS})
19 endif()