Skip to content

Conversation

@DougGregor
Copy link
Member

When performing multi-threaded IRGen, all of the link libraries used for autolinking went (only) into the first object file. If the object files were then placed in a static archive, the autolinking would only kick in if clients that link the static library reference something in the first object file. This causes link failures.

Make sure that we put the autolink information into each of the object files we create when doing multi-threaded IRGen.

Fixes the rest of rdar://162400654.

…t file

When performing multi-threaded IRGen, all of the link libraries used
for autolinking went (only) into the first object file. If the object
files were then placed in a static archive, the autolinking would only
kick in if clients that link the static library reference something in
the first object file. This causes link failures.

Make sure that we put the autolink information into each of the object
files we create when doing multi-threaded IRGen.

Fixes the rest of rdar://162400654.
@DougGregor
Copy link
Member Author

@swift-ci please smoke test

@DougGregor DougGregor enabled auto-merge November 12, 2025 19:49
@DougGregor DougGregor merged commit 669f6dc into swiftlang:main Nov 13, 2025
3 checks passed
@DougGregor DougGregor deleted the autolink-multithreaded-ir branch November 13, 2025 01:43
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.

2 participants