blob: ef4b6102e55a7faa58b6cc9d60d2d8cbb44caa46 [file] [log] [blame]
# Build for the ThreadSanitizer runtime support library.
include_directories(..)
set(TSAN_CFLAGS
${SANITIZER_COMMON_CFLAGS}
-fno-rtti)
# FIXME: Add support for compile flags:
# -Wframe-larger-than=512,
# -Wglobal-constructors,
# --sysroot=.
if("${CMAKE_BUILD_TYPE}" EQUAL "Release")
set(TSAN_COMMON_DEFINITIONS DEBUG=0)
else()
set(TSAN_COMMON_DEFINITIONS DEBUG=1)
endif()
add_subdirectory(rtl)
if(LLVM_INCLUDE_TESTS)
add_subdirectory(tests)
endif()
add_subdirectory(lit_tests)