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

Disable debuginfo when compiling tools #41354

Merged
merged 1 commit into from
Apr 19, 2017

Conversation

alexcrichton
Copy link
Member

Currently the Cargo binary has jumped from 14M to 34M on the beta channel, which
appears to be due to the fact that we're compiling tools with debug information
inside them. This additionally means that the rls binary is 62M right now!

This wasn't an intentional change, so be sure to disable debuginfo when
compiling tools as it's just intended for the standard library and compile for
now.

Currently the Cargo binary has jumped from 14M to 34M on the beta channel, which
appears to be due to the fact that we're compiling tools with debug information
inside them. This additionally means that the `rls` binary is 62M right now!

This wasn't an intentional change, so be sure to disable debuginfo when
compiling tools as it's just intended for the standard library and compile for
now.
@rust-highfive
Copy link
Collaborator

r? @aturon

(rust_highfive has picked a reviewer for you, use r? to override)

@alexcrichton
Copy link
Member Author

Nominating for beta as well as this affects beta

@alexcrichton alexcrichton added the beta-nominated Nominated for backporting to the compiler in the beta channel. label Apr 18, 2017
@cuviper
Copy link
Member

cuviper commented Apr 19, 2017

Eventually we're going to want some distro overrides here, "No really, debuginfo for all the things!" We strip debuginfo to a separate package so normal use doesn't see the size, but we want it available.

@aturon
Copy link
Member

aturon commented Apr 19, 2017

@bors: r+

@bors
Copy link
Contributor

bors commented Apr 19, 2017

📌 Commit e3ad1b5 has been approved by aturon

@retep998
Copy link
Member

Would also be nice to have an actual debuginfo component with separate debuginfo for platforms that support debuginfo in separate files instead of embedded in the binary.

frewsxcv added a commit to frewsxcv/rust that referenced this pull request Apr 19, 2017
Disable debuginfo when compiling tools

Currently the Cargo binary has jumped from 14M to 34M on the beta channel, which
appears to be due to the fact that we're compiling tools with debug information
inside them. This additionally means that the `rls` binary is 62M right now!

This wasn't an intentional change, so be sure to disable debuginfo when
compiling tools as it's just intended for the standard library and compile for
now.
@bors
Copy link
Contributor

bors commented Apr 19, 2017

⌛ Testing commit e3ad1b5 with merge 452bf08...

bors added a commit that referenced this pull request Apr 19, 2017
Disable debuginfo when compiling tools

Currently the Cargo binary has jumped from 14M to 34M on the beta channel, which
appears to be due to the fact that we're compiling tools with debug information
inside them. This additionally means that the `rls` binary is 62M right now!

This wasn't an intentional change, so be sure to disable debuginfo when
compiling tools as it's just intended for the standard library and compile for
now.
@bors
Copy link
Contributor

bors commented Apr 19, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: aturon
Pushing 452bf08 to master...

@bors bors merged commit e3ad1b5 into rust-lang:master Apr 19, 2017
@alexcrichton alexcrichton deleted the tool-no-debug branch April 19, 2017 16:06
@alexcrichton alexcrichton added the beta-accepted Accepted for backporting to the compiler in the beta channel. label Apr 20, 2017
@alexcrichton alexcrichton removed the beta-nominated Nominated for backporting to the compiler in the beta channel. label Apr 20, 2017
bors added a commit that referenced this pull request Apr 21, 2017
[beta] Final backports to beta

Backport of:

* #40863
* #41085
* #41354
* #41378
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beta-accepted Accepted for backporting to the compiler in the beta channel.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants