[LLDB] Add missing declarations for linking to psapi

This fixes building for mingw with BUILD_SHARED_LIBS. In static builds,
the psapi dependency gets linked in transitively from Support, but
when linking Support dynamically, it's revealed that these components
also need linking against psapi.

Differential Revision: https://reviews.llvm.org/D73839
This commit is contained in:
Martin Storsjö 2020-02-01 22:45:28 +02:00
parent 082dccac90
commit eb5ee9275d
2 changed files with 4 additions and 0 deletions

View File

@ -161,6 +161,9 @@ endif()
if (LLDB_ENABLE_LZMA)
list(APPEND EXTRA_LIBS ${LIBLZMA_LIBRARIES})
endif()
if (WIN32)
list(APPEND LLDB_SYSTEM_LIBS psapi)
endif ()
if (LLDB_ENABLE_LIBEDIT)
list(APPEND LLDB_LIBEDIT_LIBS ${LibEdit_LIBRARIES})

View File

@ -29,6 +29,7 @@ add_lldb_library(lldbPluginProcessWindowsCommon PLUGIN
lldbTarget
ws2_32
rpcrt4
psapi
LINK_COMPONENTS
Support
)