[Lldb-commits] [PATCH] D56741: [CMake] Explicitly list User32 as dependency of lldb-mi
Alex Langford via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Tue Jan 15 12:43:19 PST 2019
xiaobai created this revision.
xiaobai added reviewers: zturner, compnerd, sgraenitz.
Herald added subscribers: mgorny, ki.stfu.
When building LLDB standalone on windows, lldb-mi fails to build
because it doesn't link against User32. This patch adds an explicit dependency
of lldb-mi on User32.
https://reviews.llvm.org/D56741
Files:
tools/lldb-mi/CMakeLists.txt
Index: tools/lldb-mi/CMakeLists.txt
===================================================================
--- tools/lldb-mi/CMakeLists.txt
+++ tools/lldb-mi/CMakeLists.txt
@@ -7,6 +7,10 @@
list(APPEND extra_libs pthread)
endif ()
+if(CMAKE_SYSTEM_NAME MATCHES "Windows")
+ list(APPEND extra_libs User32)
+endif()
+
# We need to include the llvm components we depend on manually, as liblldb does
# not re-export those.
set(LLVM_LINK_COMPONENTS Support)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D56741.181857.patch
Type: text/x-patch
Size: 460 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20190115/8fdc1c1b/attachment.bin>
More information about the lldb-commits
mailing list