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

rustc produce considerably bigger release binaries after rustc 1.14.0-nightly (3caf63cc0 2016-10-24) #38908

Closed
ghost opened this issue Jan 7, 2017 · 7 comments

Comments

@ghost
Copy link

ghost commented Jan 7, 2017

Mentioned on /r/rust

My little project for example:
rustc +nightly-2016-10-21 -O: 652K
rustc +nightly-2016-10-26 -O: 1.9M

Sizes after strip are the same (368K)

@michaelwoerister
Copy link
Member

Thanks for the report! We should definitely look into that.

cc @rust-lang/compiler @rust-lang/tools

@michaelwoerister
Copy link
Member

The change must have been introduced somewhere in this range: f094206...3caf63c

@eddyb
Copy link
Member

eddyb commented Jan 9, 2017

My bet is on 803576c. If libstd is statically linked and it contains debug symbols, those add to the size, right?

@michaelwoerister
Copy link
Member

That could well be the cause.

@michaelwoerister
Copy link
Member

I can confirm @eddyb's hunch, it's the debuginfo for stdlibs which is causing the increased size. I'll add it to the list of reasons to have MIR-only rlibs (#38913).

@alexcrichton
Copy link
Member

Thanks for the confirmation @michaelwoerister! With that in mind I feel that there's not a lot we can do about this because we don't want to remove the debug info from libstd yet.

@Mark-Simulacrum
Copy link
Member

We found the problem and decided to not do anything at least for now so I think closing makes sense for the time being.

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

No branches or pull requests

4 participants