[Lldb-commits] [lldb] [lldb] Fix Windows build by adding missing link dependencies (PR #186014)
Omair Javaid via lldb-commits
lldb-commits at lists.llvm.org
Wed Mar 11 18:02:44 PDT 2026
https://github.com/omjavaid created https://github.com/llvm/llvm-project/pull/186014
PR #184656 (08cef699c4bb) moved LoadCore and DebuggerSupportsLLVMTarget into TestUtilities.cpp but did not update CMakeLists.txt to add the new link dependencies.
This fixes the broken lldb unit test build on Windows because lld was throwing unresolved external symbol errors on Windows and required all symbols to be resolved explicitly.
>From c4065c87867fafbe74991b1ecb8cec9a2a83435a Mon Sep 17 00:00:00 2001
From: Muhammad Omair Javaid <omair.javaid at linaro.org>
Date: Thu, 12 Mar 2026 05:48:35 +0500
Subject: [PATCH] [lldb] Fix Windows build by adding missing link dependencies
PR #184656 (08cef699c4bb) moved LoadCore and DebuggerSupportsLLVMTarget
into TestUtilities.cpp but did not update CMakeLists.txt to add the new
link dependencies.
This fixes the broken lldb unit test build on Windows because lld
was throwing unresolved external symbol errors on Windows and required
all symbols to be resolved explicitly.
---
lldb/unittests/TestingSupport/CMakeLists.txt | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lldb/unittests/TestingSupport/CMakeLists.txt b/lldb/unittests/TestingSupport/CMakeLists.txt
index b9affcf41217f..d2dccf5eefde0 100644
--- a/lldb/unittests/TestingSupport/CMakeLists.txt
+++ b/lldb/unittests/TestingSupport/CMakeLists.txt
@@ -6,8 +6,10 @@ add_lldb_library(lldbUtilityHelpers
LINK_COMPONENTS
Support
ObjectYAML
+ TestingSupport
LINK_LIBS
lldbUtility
+ liblldb
llvm_gtest
)
More information about the lldb-commits
mailing list