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)
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)
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits