-
-
Notifications
You must be signed in to change notification settings - Fork 62
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 cross-lang-fat-lto on Linux #817
Conversation
Signed-off-by: Jiahao XU <[email protected]>
Signed-off-by: Jiahao XU <[email protected]>
Signed-off-by: Jiahao XU <[email protected]>
Signed-off-by: Jiahao XU <[email protected]>
Signed-off-by: Jiahao XU <[email protected]>
Signed-off-by: Jiahao XU <[email protected]>
Signed-off-by: Jiahao XU <[email protected]>
Signed-off-by: Jiahao XU <[email protected]>
Signed-off-by: Jiahao XU <[email protected]>
Signed-off-by: Jiahao XU <[email protected]>
38dde7d
to
da0d885
Compare
Signed-off-by: Jiahao XU <[email protected]>
Signed-off-by: Jiahao XU <[email protected]>
It seems that enabling cross-lang-fat-lto is extremely effective at reducing binary size. I suppose that the linker is able to remove the code related to zstd compression support, since that is probably not used. @passcod Seems like we should also do this for macos and windows, but they seems to be much harder than linux. |
I've tested the
I will investigate on this latter. |
I've submit PR #818 to test this. |
Fixed #806
cross-lang-fat-lto
and enable it on release for linux-C linker-plugin-lto
for linux-Z gcc-ld=lld
on non-windows targets whencargo-zigbuild
is not enabledSigned-off-by: Jiahao XU [email protected]