-
Notifications
You must be signed in to change notification settings - Fork 15.2k
lldb: Link delayimp on Windows #168093
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lldb: Link delayimp on Windows #168093
Conversation
This is needed when building with `LLVM_LINK_LLVM_DYLIB` to build LLVM as a DLL on Windows. This effort is tracked in llvm#109483.
|
@llvm/pr-subscribers-lldb Author: Fabrice de Gans (Steelskin) ChangesThis is needed when building with This effort is tracked in #109483. Full diff: https://github.com/llvm/llvm-project/pull/168093.diff 1 Files Affected:
diff --git a/lldb/cmake/modules/AddLLDB.cmake b/lldb/cmake/modules/AddLLDB.cmake
index 5d58abf237f58..6493df27f38db 100644
--- a/lldb/cmake/modules/AddLLDB.cmake
+++ b/lldb/cmake/modules/AddLLDB.cmake
@@ -172,6 +172,7 @@ function(add_lldb_executable name)
if(NOT LIBLLDB_INDEX EQUAL -1)
if (MSVC)
target_link_options(${name} PRIVATE "/DELAYLOAD:$<TARGET_FILE_NAME:liblldb>")
+ target_link_libraries(${name} PRIVATE delayimp)
elseif (MINGW AND LINKER_IS_LLD)
# LLD can delay load just by passing a --delayload flag, as long as the import
# library is a short type import library (which LLD and MS link.exe produce).
|
JDevlieghere
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
Could one of you land this for me, please? I do not have the rights. |
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/195/builds/17351 Here is the relevant piece of the build log for the reference |
This is needed when building with
LLVM_LINK_LLVM_DYLIBto build LLVM as a DLL on Windows.This effort is tracked in #109483.