[compiler-rt] r209003 - [CMake] Don't build libcxx_tsan with compilers other than Clang

Alexey Samsonov samsonov at google.com
Fri May 16 11:22:05 PDT 2014


Author: samsonov
Date: Fri May 16 13:22:04 2014
New Revision: 209003

URL: http://llvm.org/viewvc/llvm-project?rev=209003&view=rev
Log:
[CMake] Don't build libcxx_tsan with compilers other than Clang

Modified:
    compiler-rt/trunk/lib/tsan/CMakeLists.txt
    compiler-rt/trunk/test/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=209003&r1=209002&r2=209003&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/CMakeLists.txt (original)
+++ compiler-rt/trunk/lib/tsan/CMakeLists.txt Fri May 16 13:22:04 2014
@@ -100,7 +100,8 @@ endif()
 add_dependencies(compiler-rt tsan)
 
 # Build libcxx instrumented with TSan.
-if(COMPILER_RT_HAS_LIBCXX_SOURCES)
+if(COMPILER_RT_HAS_LIBCXX_SOURCES AND
+   COMPILER_RT_TEST_COMPILER STREQUAL "Clang")
   set(LIBCXX_PREFIX ${CMAKE_CURRENT_BINARY_DIR}/libcxx_tsan)
   add_custom_libcxx(libcxx_tsan ${LIBCXX_PREFIX}
     DEPS ${TSAN_RUNTIME_LIBRARIES}

Modified: compiler-rt/trunk/test/tsan/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/CMakeLists.txt?rev=209003&r1=209002&r2=209003&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/CMakeLists.txt (original)
+++ compiler-rt/trunk/test/tsan/CMakeLists.txt Fri May 16 13:22:04 2014
@@ -2,7 +2,8 @@ set(TSAN_TEST_DEPS ${SANITIZER_COMMON_LI
 if(NOT COMPILER_RT_STANDALONE_BUILD)
   list(APPEND TSAN_TEST_DEPS tsan)
 endif()
-if(COMPILER_RT_HAS_LIBCXX_SOURCES)
+if(COMPILER_RT_HAS_LIBCXX_SOURCES AND
+   COMPILER_RT_TEST_COMPILER STREQUAL "Clang")
   list(APPEND TSAN_TEST_DEPS libcxx_tsan)
   set(TSAN_HAS_LIBCXX True)
 else()





More information about the llvm-commits mailing list