[CMake] Add optional asan & safestack dependencies to DEBUGINFO_TEST_DEPS

This commit is contained in:
Fangrui Song 2020-06-25 17:56:22 -07:00
parent dccfaacf93
commit e477a5f6c8
1 changed files with 9 additions and 0 deletions

View File

@ -22,6 +22,15 @@ set(DEBUGINFO_TEST_DEPS
not
)
# llgdb-tests/asan.c and other asan* files.
if(TARGET asan)
list(APPEND DEBUGINFO_TEST_DEPS asan)
endif()
# llgdb-tests/safestack.c
if(TARGET safestack)
list(APPEND DEBUGINFO_TEST_DEPS safestack)
endif()
# The Windows builder scripts pass -fuse-ld=lld.
if (WIN32)
set(DEBUGINFO_TEST_DEPS ${DEBUGINFO_TEST_DEPS} lld)