mirror of
https://github.com/intel/llvm.git
synced 2026-02-05 22:17:23 +08:00
Build libcxx-tsan only if TSan is supported on host architecture
llvm-svn: 213791
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user