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

Enable --icf=safe for release build #719

Closed
wants to merge 1 commit into from
Closed

Conversation

NobodyXu
Copy link
Member

Fixed #663

Signed-off-by: Jiahao XU Jiahao_XU@outlook.com

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
@NobodyXu
Copy link
Member Author

Same as before: Succeeded on windows but failed on all other targets.

@NobodyXu NobodyXu closed this Jan 17, 2023
@NobodyXu NobodyXu deleted the re-enable-icf-safe branch January 17, 2023 07:39
@passcod
Copy link
Member

passcod commented Jan 17, 2023

We could enable it on just windows

@NobodyXu
Copy link
Member Author

We could enable it on just windows

Yes, I was thinking more of enable it everywhere, but enabling it on win is certainly better than not enable it at all.

BTW, perhaps we can change the system linker to lld to fix this issue?

@passcod
Copy link
Member

passcod commented Jan 17, 2023

We can try but I'm not sure how easy to do so it is in CI and without messing people's setups locally

@NobodyXu
Copy link
Member Author

NobodyXu commented Jan 17, 2023

We can try but I'm not sure how easy to do so it is in CI and without messing people's setups locally

Turns out we can archive that via rustflags https://stackoverflow.com/questions/57812916/how-do-i-change-the-default-rustc-cargo-linker

@NobodyXu
Copy link
Member Author

Actually lld is the fastest linker (except for mold on non-lto builds), so switching to lld should also improve build-time.

@NobodyXu
Copy link
Member Author

I would try this in #722

@NobodyXu
Copy link
Member Author

I would try this in #722

Eh actually let's do this in another PR after releasing 0.19.3

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.

Use -C link-arg=--icf=safe for release build
2 participants