Skip to content

Commit 7c78398

Browse files
[TySan][CMake] Depend on tysan for check-tysan in runtimes build
The runtimes build expects libclang_rt.tysan.a to be available, but the check-tysan target does not actually depend on it when built using a runtimes build with LLVM_ENABLE_RUNTIMES pointing at ./llvm. This means we get test failures when running check-compiler-rt due to the missing static archive. This patch also makes check-tysan depend on tysan when we are using the runtimes build.
1 parent 719e7be commit 7c78398

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler-rt/test/tysan/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ foreach(arch ${TYSAN_TEST_ARCH})
2121
endforeach()
2222

2323
set(TYSAN_TEST_DEPS ${SANITIZER_COMMON_LIT_TEST_DEPS})
24-
if(NOT COMPILER_RT_STANDALONE_BUILD)
24+
if(NOT COMPILER_RT_STANDALONE_BUILD OR LLVM_RUNTIMES_BUILD)
2525
list(APPEND TYSAN_TEST_DEPS tysan)
2626
endif()
2727

0 commit comments

Comments
 (0)