From: Alexey Samsonov Date: Thu, 10 Jul 2014 18:17:51 +0000 (+0000) Subject: [TSan] Fix a bug in libcxx-tsan build conditions spotted by Ryuta Suzuki X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3a2cb3ad41c43d779f2e67f91273de014709d374;p=platform%2Fupstream%2Fllvm.git [TSan] Fix a bug in libcxx-tsan build conditions spotted by Ryuta Suzuki llvm-svn: 212749 --- diff --git a/compiler-rt/lib/tsan/CMakeLists.txt b/compiler-rt/lib/tsan/CMakeLists.txt index 3126d52..19efb54 100644 --- a/compiler-rt/lib/tsan/CMakeLists.txt +++ b/compiler-rt/lib/tsan/CMakeLists.txt @@ -104,7 +104,7 @@ add_dependencies(compiler-rt tsan) # Build libcxx instrumented with TSan. if(COMPILER_RT_HAS_LIBCXX_SOURCES AND - COMPILER_RT_TEST_COMPILER STREQUAL "Clang") + COMPILER_RT_TEST_COMPILER_ID STREQUAL "Clang") set(LIBCXX_PREFIX ${CMAKE_CURRENT_BINARY_DIR}/libcxx_tsan) add_custom_libcxx(libcxx_tsan ${LIBCXX_PREFIX} DEPS ${TSAN_RUNTIME_LIBRARIES} diff --git a/compiler-rt/test/tsan/CMakeLists.txt b/compiler-rt/test/tsan/CMakeLists.txt index 5b7be0c9..29c0821b 100644 --- a/compiler-rt/test/tsan/CMakeLists.txt +++ b/compiler-rt/test/tsan/CMakeLists.txt @@ -3,7 +3,7 @@ if(NOT COMPILER_RT_STANDALONE_BUILD) list(APPEND TSAN_TEST_DEPS tsan) endif() if(COMPILER_RT_HAS_LIBCXX_SOURCES AND - COMPILER_RT_TEST_COMPILER STREQUAL "Clang") + COMPILER_RT_TEST_COMPILER_ID STREQUAL "Clang") list(APPEND TSAN_TEST_DEPS libcxx_tsan) set(TSAN_HAS_LIBCXX True) else()