[TSan] Add tsan to cmake build of compiler-rt only on Linux

llvm-svn: 164217
This commit is contained in:
Alexey Samsonov 2012-09-19 13:11:13 +00:00
parent 47196e6cd5
commit 1fba97d22d
1 changed files with 4 additions and 1 deletions

View File

@ -3,7 +3,10 @@
add_subdirectory(asan)
add_subdirectory(interception)
add_subdirectory(sanitizer_common)
add_subdirectory(tsan)
if("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux")
# ThreadSanitizer is supported on Linux only.
add_subdirectory(tsan)
endif()
# FIXME: Add support for the profile library.