Skip to content
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

Add swift.internalize_at_link feature and enable it by default #1389

Merged
merged 1 commit into from
Oct 14, 2024

Conversation

brentleyjones
Copy link
Collaborator

This feature controls the -Xfrontend -internalize-at-link flag, which allows the linker to hide public symbols that are not being used and thus dead-strip them. Users of frameworks will need to explicitly export them with an -exported_symbols_list if they are not already.

PiperOrigin-RevId: 524870535
(cherry picked from commit e8838f2)

This feature controls the `-Xfrontend -internalize-at-link` flag, which allows the linker to hide public symbols that are not being used and thus dead-strip them. Users of frameworks will need to explicitly export them with an `-exported_symbols_list` if they are not already.

PiperOrigin-RevId: 524870535
(cherry picked from commit e8838f2)
Signed-off-by: Brentley Jones <github@brentleyjones.com>
brentleyjones referenced this pull request Oct 14, 2024
This feature controls the `-Xfrontend -internalize-at-link` flag, which allows the linker to hide public symbols that are not being used and thus dead-strip them. Users of frameworks will need to explicitly export them with an `-exported_symbols_list` if they are not already.

PiperOrigin-RevId: 524870535
@brentleyjones brentleyjones merged commit 2dad738 into master Oct 14, 2024
14 checks passed
@brentleyjones brentleyjones deleted the bj/internalize_at_link branch October 14, 2024 04:30
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