projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a507bfc
)
Build libcxx-tsan only if TSan is supported on host architecture
author
Alexey Samsonov
<vonosmas@gmail.com>
Wed, 23 Jul 2014 20:07:26 +0000
(20:07 +0000)
committer
Alexey Samsonov
<vonosmas@gmail.com>
Wed, 23 Jul 2014 20:07:26 +0000
(20:07 +0000)
llvm-svn: 213791
compiler-rt/lib/tsan/CMakeLists.txt
patch
|
blob
|
history
diff --git
a/compiler-rt/lib/tsan/CMakeLists.txt
b/compiler-rt/lib/tsan/CMakeLists.txt
index
19efb54
..
3d53de9
100644
(file)
--- a/
compiler-rt/lib/tsan/CMakeLists.txt
+++ b/
compiler-rt/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}