[TySan][CMake] Depend on tysan for check-tysan in runtimes build (#143597)

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.

This is causing premerge failures currently since we recently migrated
to the runtimes build.
This commit is contained in:
Aiden Grossman 2025-06-11 01:06:13 +00:00 committed by GitHub
parent 6f62979a5a
commit 3cef099ced
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -21,9 +21,7 @@ foreach(arch ${TYSAN_TEST_ARCH})
endforeach()
set(TYSAN_TEST_DEPS ${SANITIZER_COMMON_LIT_TEST_DEPS})
if(NOT COMPILER_RT_STANDALONE_BUILD)
list(APPEND TYSAN_TEST_DEPS tysan)
endif()
list(APPEND TYSAN_TEST_DEPS tysan)
add_lit_testsuite(check-tysan "Running the TypeSanitizer tests"
${TYSAN_TESTSUITES}