mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-03 06:10:23 +00:00
[TSan] Fix a bug in libcxx-tsan build conditions spotted by Ryuta Suzuki
llvm-svn: 212749
This commit is contained in:
parent
b2921c7ca0
commit
3a2cb3ad41
@ -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}
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user