Skip to content

Commit 703c97b

Browse files
committed
[lldb] Mark ASan & TSan as test dependencies
Without asan and tsan as test dependencies, you might end up with a clang that points to sanitizer runtime library that hasn't been build yet.
1 parent a6b5daa commit 703c97b

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

lldb/test/CMakeLists.txt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,16 @@ endif()
7575
# This works with standalone builds as they import the clang target.
7676
if(TARGET clang)
7777
add_lldb_test_dependency(clang)
78+
79+
if(TARGET asan)
80+
add_lldb_test_dependency(asan)
81+
endif()
82+
83+
if(TARGET tsan)
84+
add_lldb_test_dependency(tsan)
85+
endif()
86+
7887
if(APPLE)
79-
# If we build clang, we should build libcxx.
8088
# FIXME: Standalone builds should import the cxx target as well.
8189
if(LLDB_BUILT_STANDALONE)
8290
# For now check that the include directory exists.

0 commit comments

Comments
 (0)