diff --git a/lldb/test/CMakeLists.txt b/lldb/test/CMakeLists.txt --- a/lldb/test/CMakeLists.txt +++ b/lldb/test/CMakeLists.txt @@ -95,6 +95,9 @@ if(TARGET clang) add_lldb_test_dependency(clang) + # TestFullLtoStepping depends on LTO, and only runs when the compiler is clang. + add_lldb_test_dependency(LTO) + if (TARGET libcxx OR ("libcxx" IN_LIST LLVM_ENABLE_RUNTIMES)) set(LLDB_HAS_LIBCXX ON) if(LLVM_ENABLE_PER_TARGET_RUNTIME_DIR AND NOT APPLE)