Skip to content

Link swift compiler modules to lldb #4071

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

Conversation

etcwilde
Copy link
Member

This re-applies linking the swift compiler modules to lldb, but uses target_link_libraries instead of using add_library to create an alias. target_link_libraries doesn't care if the libraries exist until link time, add_library does. In a unified build, lldb is configured before Swift, so the target doesn't exist, which is why it was failing on Windows in the unified build.

rdar://90236027

eeckstein and others added 3 commits March 15, 2022 11:54
Need to add an alias from wiftCompilerModules to swiftCompilerStub
This is needed for the swift expression parser once parts of the parser are implemented in swift.
add_library verifies that the target exists, so if swift isn't being
built, or hasn't been configured yet, CMake complains.
target_link_libraries doesn't care about the target at configure time.
If the library doesn't exist come link-time, then we will see an error.
@etcwilde
Copy link
Member Author

@swift-ci please test

@etcwilde
Copy link
Member Author

Failure: linux-nodes i-07c79087ecf37a702 was marked offline: Connection was broken: java.io.EOFException
@swift-ci please test Linux

@etcwilde
Copy link
Member Author

The Windows toolchain test build is hitting a timeout while testing foundation. That is a separate issue than the one this is fixing, which would result in a configuration failure in lldb on Windows if done incorrectly. The Windows toolchain did get through lldb configuration, so I think it's okay.

@etcwilde etcwilde merged commit ce03fe4 into swiftlang:stable/20211026 Mar 16, 2022
@etcwilde etcwilde deleted the ewilde/link-swift-compiler-modules-to-lldb branch March 16, 2022 00:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants