Skip to content

[5.10 🍒] Fine-grained autolinking control #69016

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

Merged

Conversation

artemcm
Copy link
Contributor

@artemcm artemcm commented Oct 6, 2023

Cherry-pick of #69000

This change adds the following options to allow for greater control over the compiler's autolinking directive use:

  • '-disable-autolink-library': equivalent to an existing '-disable-autolink-framework', this option takes a library name as input and ensures the compiler does not produce an autolink directive '-l'.
  • '-disable-autolink-frameworks': a boolean disable flag which turns off insertion of autolinking directives for all imported frameworks (of the type '-framework ')
  • '-disable-all-autolinking': a boolean disable flag which turns off insertion of any autolinking directives.

Resolves rdar://100859983

This change adds the following options to allow for greater control over the compiler's autolinking directive use:
- '-disable-autolink-library': equivalent to an existing '-disable-autolink-framework', this option takes a library name as input and ensures the compiler does not produce an autolink directive '-l<library-name>'.
- '-disable-autolink-frameworks': a boolean disable flag which turns off insertion of autolinking directives for all imported frameworks (of the type '-framework <framework-name>')
- '-disable-all-autolinking': a boolean disable flag which turns off insertion of *any* autolinking directives.

Resolves rdar://100859983
@artemcm artemcm requested a review from a team as a code owner October 6, 2023 16:51
@artemcm
Copy link
Contributor Author

artemcm commented Oct 6, 2023

@swift-ci test

Copy link
Contributor

@nkcsgexi nkcsgexi left a comment

Choose a reason for hiding this comment

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

Sad that we still need auto-linking at all😉.

@artemcm
Copy link
Contributor Author

artemcm commented Oct 6, 2023

@swift-ci test Windows platform

@artemcm artemcm merged commit fd38fe4 into swiftlang:release/5.10 Oct 13, 2023
@artemcm artemcm deleted the 510FineGrainedAutolinkControls branch October 13, 2023 16:05
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