[lldb] Add LTO dependency to lldb test suite
authorAugusto Noronha <augusto2112@me.com>
Wed, 14 Dec 2022 21:21:57 +0000 (13:21 -0800)
committerAugusto Noronha <augusto2112@me.com>
Thu, 22 Dec 2022 18:15:20 +0000 (10:15 -0800)
Make the lldb test target depend on LTO, since TestFullLtoStepping
needs it (prior to this patch, running "ninja check-lldb" would not
build libLTO).

Differential Revision: https://reviews.llvm.org/D140051

lldb/test/CMakeLists.txt

index dc1dff8..0b0a9e9 100644 (file)
@@ -95,6 +95,9 @@ endif()
 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)