Skip to content

Commit 5256d3e

Browse files
committed
Enable line-only debuginfo by default.
1 parent 93fa2d7 commit 5256d3e

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

config.toml.example

+1-1
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@
289289
#debuginfo = false
290290

291291
# Whether or not line number debug information is emitted
292-
#debuginfo-lines = false
292+
#debuginfo-lines = true
293293

294294
# Whether or not to only build debuginfo for the standard library if enabled.
295295
# If enabled, this will not compile the compiler with debuginfo, just the

src/bootstrap/config.rs

+3-5
Original file line numberDiff line numberDiff line change
@@ -625,13 +625,11 @@ impl Config {
625625
let default = true;
626626
config.rust_optimize = optimize.unwrap_or(default);
627627

628-
let default = match &config.channel[..] {
629-
"stable" | "beta" | "nightly" => true,
630-
_ => false,
631-
};
632628
config.rust_debuginfo_lines = debuginfo_lines.unwrap_or(default);
629+
630+
let default = false;
633631
config.rust_debuginfo_only_std = debuginfo_only_std.unwrap_or(default);
634-
config.rust_debuginfo_tools = debuginfo_tools.unwrap_or(false);
632+
config.rust_debuginfo_tools = debuginfo_tools.unwrap_or(default);
635633

636634
let default = debug == Some(true);
637635
config.rust_debuginfo = debuginfo.unwrap_or(default);

0 commit comments

Comments
 (0)