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

Use -C link-arg=--icf=safe for release build #663

Closed
NobodyXu opened this issue Jan 7, 2023 · 3 comments
Closed

Use -C link-arg=--icf=safe for release build #663

NobodyXu opened this issue Jan 7, 2023 · 3 comments

Comments

@NobodyXu
Copy link
Member

NobodyXu commented Jan 7, 2023

Using Identical Code Folding (abbrev. icf) might reduce size for release build.

@passcod
Copy link
Member

passcod commented Jan 8, 2023

I think that's only supported with gold

@NobodyXu
Copy link
Member Author

NobodyXu commented Jan 8, 2023

LLVM's lld also support --icf=safe from 7.0.0
The help page of lld also includes the --icf=safe option.

@NobodyXu
Copy link
Member Author

Done in #805

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 a pull request may close this issue.

2 participants