Skip to content

[windows] fix flaky linker error when building LLDB #10612

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

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions lldb/source/API/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,7 @@ add_lldb_library(liblldb SHARED ${option_framework}
lldbValueObject
lldbVersion
${LLDB_ALL_PLUGINS}
## BEGIN SWIFT
${SWIFT_ALL_LIBS}
## END SWIFT
swiftCore

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You probably need to do something like
if(LLDB_ENABLE_SWIFT)
SWIFT_ALL_LIBS="swiftCore"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JDevlieghere Can you review this, too?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe it also makes more sense to move this into a place like source/Plugins/LanguageRuntime/Swift/CMakeLists.txt

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I ended up moving swiftCore inside of lldb/Plugins/Languages/Swift/CMakeLists.txt.

This should only build when building with swift support?

I moved the PR here, since it's targeting the stable branch: #10613

LINK_COMPONENTS
Support

Expand Down