forked from OSchip/llvm-project
[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:
parent
082dccac90
commit
eb5ee9275d
|
@ -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})
|
||||
|
|
|
@ -29,6 +29,7 @@ add_lldb_library(lldbPluginProcessWindowsCommon PLUGIN
|
|||
lldbTarget
|
||||
ws2_32
|
||||
rpcrt4
|
||||
psapi
|
||||
LINK_COMPONENTS
|
||||
Support
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue