2014-02-14 19:00:07 +08:00
|
|
|
configure_lit_site_cfg(
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/lit.common.configured.in
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/lit.common.configured)
|
|
|
|
|
|
|
|
# BlocksRuntime and builtins testsuites are not yet ported to lit.
|
|
|
|
# add_subdirectory(BlocksRuntime)
|
|
|
|
# add_subdirectory(builtins)
|
2014-02-14 19:42:22 +08:00
|
|
|
|
|
|
|
# Run sanitizer tests only if we're sure that clang would produce
|
|
|
|
# working binaries.
|
|
|
|
if(COMPILER_RT_CAN_EXECUTE_TESTS)
|
2014-02-14 22:45:13 +08:00
|
|
|
if(ASAN_SUPPORTED_ARCH OR ANDROID)
|
2014-02-14 22:06:10 +08:00
|
|
|
add_subdirectory(asan)
|
|
|
|
endif()
|
2014-02-14 20:05:41 +08:00
|
|
|
if(DFSAN_SUPPORTED_ARCH)
|
|
|
|
add_subdirectory(dfsan)
|
|
|
|
endif()
|
2014-02-14 20:26:05 +08:00
|
|
|
if(LSAN_SUPPORTED_ARCH)
|
|
|
|
add_subdirectory(lsan)
|
|
|
|
endif()
|
2014-02-14 21:02:58 +08:00
|
|
|
if(MSAN_SUPPORTED_ARCH)
|
|
|
|
add_subdirectory(msan)
|
|
|
|
endif()
|
2014-02-14 22:35:48 +08:00
|
|
|
if(TSAN_SUPPORTED_ARCH)
|
|
|
|
add_subdirectory(tsan)
|
|
|
|
endif()
|
2014-02-14 19:42:22 +08:00
|
|
|
if(UBSAN_SUPPORTED_ARCH)
|
|
|
|
add_subdirectory(ubsan)
|
|
|
|
endif()
|
|
|
|
endif()
|