Skip to content

[6.0][ModuleInterface] Save -public-autolink-library module option #74323

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

kateinoigakukun
Copy link
Member

@kateinoigakukun kateinoigakukun commented Jun 12, 2024

Explanation: Fixes inconsistent swiftmodule compilation issue revealed by recent explicit module improvements
Scope: Only affects static-linking scenario
Risk: Low; just save/restore an option that has existed since Swift 5.6 and only affects to static-linking
Testing: Added a new test to cover the case
Reviewer: @artemcm
Original PR: #74277

Serialize the `-public-autolink-library <name>` option to the
moduleinterface file because it can affect the LINK_LIBRARY entries in a
swiftmodule file. Without saving the option, the library won't be linked
when a module compiled from the moduleinterface is used.

This change marks the `-public-autolink-library` option as a module
interface option and reads it when building a swiftmodule by module
loader.
@kateinoigakukun kateinoigakukun changed the title [ModuleInterface] Save -public-autolink-library module option [6.0][ModuleInterface] Save -public-autolink-library module option Jun 12, 2024
@kateinoigakukun kateinoigakukun added 🍒 release cherry pick Flag: Release branch cherry picks swift 6.0 labels Jun 12, 2024
@kateinoigakukun
Copy link
Member Author

@swift-ci test

@MaxDesiatov MaxDesiatov requested a review from bnbarham June 12, 2024 09:47
@MaxDesiatov MaxDesiatov added the bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. label Jun 12, 2024
@kateinoigakukun kateinoigakukun marked this pull request as ready for review June 13, 2024 01:52
@kateinoigakukun kateinoigakukun requested a review from a team as a code owner June 13, 2024 01:52
@kateinoigakukun kateinoigakukun merged commit ca8e023 into swiftlang:release/6.0 Jun 13, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. 🍒 release cherry pick Flag: Release branch cherry picks swift 6.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants