Skip to content

Commit 87ce7cd

Browse files
Steelskingithub-actions[bot]
authored andcommitted
Automerge: lldb: Link delayimp on Windows (#168093)
This is needed when building with `LLVM_LINK_LLVM_DYLIB` to build LLVM as a DLL on Windows. This effort is tracked in #109483.
2 parents a843442 + d06a7dd commit 87ce7cd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lldb/cmake/modules/AddLLDB.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ function(add_lldb_executable name)
172172
if(NOT LIBLLDB_INDEX EQUAL -1)
173173
if (MSVC)
174174
target_link_options(${name} PRIVATE "/DELAYLOAD:$<TARGET_FILE_NAME:liblldb>")
175+
target_link_libraries(${name} PRIVATE delayimp)
175176
elseif (MINGW AND LINKER_IS_LLD)
176177
# LLD can delay load just by passing a --delayload flag, as long as the import
177178
# library is a short type import library (which LLD and MS link.exe produce).

0 commit comments

Comments
 (0)