[ASan/Win] Use clang rather than clang-cl by default for lit tests. Make Windows...
[blocksruntime.git] / test / msan / CMakeLists.txt
blob08786ee777ebd21b1743e29c3ba4db536bd247b3
1 set(MSAN_LIT_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
3 configure_lit_site_cfg(
4   ${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.in
5   ${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg)
7 set(MSAN_TEST_DEPS ${SANITIZER_COMMON_LIT_TEST_DEPS})
8 if(NOT COMPILER_RT_STANDALONE_BUILD)
9   list(APPEND MSAN_TEST_DEPS msan)
10 endif()
12 if(COMPILER_RT_INCLUDE_TESTS AND COMPILER_RT_HAS_LIBCXX_SOURCES)
13   configure_lit_site_cfg(
14     ${CMAKE_CURRENT_SOURCE_DIR}/Unit/lit.site.cfg.in
15     ${CMAKE_CURRENT_BINARY_DIR}/Unit/lit.site.cfg)
16   list(APPEND MSAN_TEST_DEPS MsanUnitTests)
17 endif()
19 add_lit_testsuite(check-msan "Running the MemorySanitizer tests"
20   ${CMAKE_CURRENT_BINARY_DIR}
21   DEPENDS ${MSAN_TEST_DEPS}
22   )
23 set_target_properties(check-msan PROPERTIES FOLDER "MSan tests")