-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
rustbuild: allow building tools with debuginfo #49959
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -94,6 +94,7 @@ pub struct Config { | |
pub rust_debuginfo: bool, | ||
pub rust_debuginfo_lines: bool, | ||
pub rust_debuginfo_only_std: bool, | ||
pub rust_debuginfo_tools: bool, | ||
pub rust_rpath: bool, | ||
pub rustc_parallel_queries: bool, | ||
pub rustc_default_linker: Option<String>, | ||
|
@@ -282,6 +283,7 @@ struct Rust { | |
debuginfo: Option<bool>, | ||
debuginfo_lines: Option<bool>, | ||
debuginfo_only_std: Option<bool>, | ||
debuginfo_tools: Option<bool>, | ||
experimental_parallel_queries: Option<bool>, | ||
debug_jemalloc: Option<bool>, | ||
use_jemalloc: Option<bool>, | ||
|
@@ -462,6 +464,7 @@ impl Config { | |
let mut llvm_assertions = None; | ||
let mut debuginfo_lines = None; | ||
let mut debuginfo_only_std = None; | ||
let mut debuginfo_tools = None; | ||
let mut debug = None; | ||
let mut debug_jemalloc = None; | ||
let mut debuginfo = None; | ||
|
@@ -499,6 +502,7 @@ impl Config { | |
debuginfo = rust.debuginfo; | ||
debuginfo_lines = rust.debuginfo_lines; | ||
debuginfo_only_std = rust.debuginfo_only_std; | ||
debuginfo_tools = rust.debuginfo_tools; | ||
optimize = rust.optimize; | ||
ignore_git = rust.ignore_git; | ||
debug_jemalloc = rust.debug_jemalloc; | ||
|
@@ -582,6 +586,7 @@ impl Config { | |
}; | ||
config.rust_debuginfo_lines = debuginfo_lines.unwrap_or(default); | ||
config.rust_debuginfo_only_std = debuginfo_only_std.unwrap_or(default); | ||
config.rust_debuginfo_tools = debuginfo_tools.unwrap_or(default); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK, I'll make it plain false. |
||
|
||
let default = debug == Some(true); | ||
config.debug_jemalloc = debug_jemalloc.unwrap_or(default); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I realize that these numbers are just copied from old comments, but could you verify that building Cargo (for example) with debuginfo is a 3-4x increase? I'd prefer not to perpetuate potentially wrong information into more places.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, actually, I get 15MB without debuginfo, 95MB with! And that's "without" that actually still includes some debuginfo from linked std etc. -- the fully stripped size is 9.2MB.
Let's avoid numbers though -- how about I'll just say that it's several times larger.