Build libcxx-tsan only if TSan is supported on host architecture

llvm-svn: 213791
This commit is contained in:
Alexey Samsonov
2014-07-23 20:07:26 +00:00
parent a507bfc6b9
commit 16ea3268b2

View File

@@ -103,7 +103,8 @@ endif()
add_dependencies(compiler-rt tsan)
# Build libcxx instrumented with TSan.
if(COMPILER_RT_HAS_LIBCXX_SOURCES AND
if(TSAN_SUPPORTED_ARCH AND
COMPILER_RT_HAS_LIBCXX_SOURCES AND
COMPILER_RT_TEST_COMPILER_ID STREQUAL "Clang")
set(LIBCXX_PREFIX ${CMAKE_CURRENT_BINARY_DIR}/libcxx_tsan)
add_custom_libcxx(libcxx_tsan ${LIBCXX_PREFIX}