forked from OSchip/llvm-project
[CMake] Add optional lldb dependency to DEBUGINFO_TEST_DEPS
if(TARGET asan) is still brittle as it depends on the order of compiler-rt and debuginfo-tests in LLVM_ENABLE_PROJECTS.
This commit is contained in:
parent
0c6bf90b56
commit
161ae1f398
|
@ -22,13 +22,19 @@ set(DEBUGINFO_TEST_DEPS
|
||||||
not
|
not
|
||||||
)
|
)
|
||||||
|
|
||||||
# llgdb-tests/asan.c and other asan* files.
|
if("compiler-rt" IN_LIST LLVM_ENABLE_PROJECTS)
|
||||||
if(TARGET asan)
|
# llgdb-tests/asan.c and other asan* files.
|
||||||
list(APPEND DEBUGINFO_TEST_DEPS asan)
|
if(TARGET asan)
|
||||||
|
list(APPEND DEBUGINFO_TEST_DEPS asan)
|
||||||
|
endif()
|
||||||
|
# llgdb-tests/safestack.c
|
||||||
|
if(TARGET safestack)
|
||||||
|
list(APPEND DEBUGINFO_TEST_DEPS safestack)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
# llgdb-tests/safestack.c
|
# Many dexter tests depend on lldb.
|
||||||
if(TARGET safestack)
|
if("lldb" IN_LIST LLVM_ENABLE_PROJECTS)
|
||||||
list(APPEND DEBUGINFO_TEST_DEPS safestack)
|
list(APPEND DEBUGINFO_TEST_DEPS lldb lldb-server)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# The Windows builder scripts pass -fuse-ld=lld.
|
# The Windows builder scripts pass -fuse-ld=lld.
|
||||||
|
|
Loading…
Reference in New Issue