Skip to content

Commit dfa3570

Browse files
committed
[lldb] Add test dependency on the runtimes instead of the cxx target
Instead of adding individual dependencies on the enabled runtimes, make the `lldb-test-depends` target depend on the `runtimes` target. The `cxx` target broke after 0fc8f0b.
1 parent 463a02b commit dfa3570

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lldb/test/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,10 @@ if(NOT LLDB_BUILT_STANDALONE)
139139
)
140140
endif()
141141

142+
if (LLVM_ENABLE_RUNTIMES)
143+
add_lldb_test_dependency(runtimes)
144+
endif()
145+
142146
# Add dependencies if we test with the in-tree clang.
143147
# This works with standalone builds as they import the clang target.
144148
if(TARGET clang)
@@ -157,12 +161,10 @@ if(TARGET clang)
157161
set(LIBCXX_LIBRARY_DIR ${CMAKE_BINARY_DIR}/lib${LIBCXX_LIBDIR_SUFFIX})
158162
set(LIBCXX_GENERATED_INCLUDE_DIR "${CMAKE_BINARY_DIR}/include/c++/v1")
159163
endif()
160-
add_lldb_test_dependency(cxx)
161164
endif()
162165

163166
if (TARGET compiler-rt OR "compiler-rt" IN_LIST LLVM_ENABLE_RUNTIMES)
164167
set(LLDB_HAS_COMPILER_RT ON)
165-
add_lldb_test_dependency(compiler-rt)
166168
endif()
167169

168170
if(APPLE AND NOT LLVM_TARGET_IS_CROSSCOMPILE_HOST)

0 commit comments

Comments
 (0)