From c746148a1ae9468d2c955fe2e3bad463b6a62b14 Mon Sep 17 00:00:00 2001 From: Alexey Samsonov Date: Wed, 23 Jul 2014 20:07:26 +0000 Subject: [PATCH] Build libcxx-tsan only if TSan is supported on host architecture git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@213791 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/tsan/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/tsan/CMakeLists.txt b/lib/tsan/CMakeLists.txt index 19efb5489..3d53de994 100644 --- a/lib/tsan/CMakeLists.txt +++ b/lib/tsan/CMakeLists.txt @@ -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} -- 2.11.4.GIT