[compiler-rt] r213791 - Build libcxx-tsan only if TSan is supported on host architecture

Alexey Samsonov vonosmas at gmail.com
Wed Jul 23 13:07:26 PDT 2014


Author: samsonov
Date: Wed Jul 23 15:07:26 2014
New Revision: 213791

URL: http://llvm.org/viewvc/llvm-project?rev=213791&view=rev
Log:
Build libcxx-tsan only if TSan is supported on host architecture

Modified:
    compiler-rt/trunk/lib/tsan/CMakeLists.txt

Modified: compiler-rt/trunk/lib/tsan/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/CMakeLists.txt?rev=213791&r1=213790&r2=213791&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/CMakeLists.txt (original)
+++ compiler-rt/trunk/lib/tsan/CMakeLists.txt Wed Jul 23 15:07:26 2014
@@ -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}





More information about the llvm-commits mailing list