mirror of
https://github.com/intel/llvm.git
synced 2026-01-19 01:15:50 +08:00
[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:
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user