From 5256d3e68b4019c1d1850d9baf8d7b615ab4a7c5 Mon Sep 17 00:00:00 2001 From: Eduard-Mihai Burtescu Date: Sat, 22 Sep 2018 12:21:40 +0300 Subject: [PATCH] Enable line-only debuginfo by default. --- config.toml.example | 2 +- src/bootstrap/config.rs | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/config.toml.example b/config.toml.example index 8b11014edae79..1d5107cf01361 100644 --- a/config.toml.example +++ b/config.toml.example @@ -289,7 +289,7 @@ #debuginfo = false # Whether or not line number debug information is emitted -#debuginfo-lines = false +#debuginfo-lines = true # Whether or not to only build debuginfo for the standard library if enabled. # If enabled, this will not compile the compiler with debuginfo, just the diff --git a/src/bootstrap/config.rs b/src/bootstrap/config.rs index 0f249eee00022..0a19f43fb445c 100644 --- a/src/bootstrap/config.rs +++ b/src/bootstrap/config.rs @@ -625,13 +625,11 @@ impl Config { let default = true; config.rust_optimize = optimize.unwrap_or(default); - let default = match &config.channel[..] { - "stable" | "beta" | "nightly" => true, - _ => false, - }; config.rust_debuginfo_lines = debuginfo_lines.unwrap_or(default); + + let default = false; config.rust_debuginfo_only_std = debuginfo_only_std.unwrap_or(default); - config.rust_debuginfo_tools = debuginfo_tools.unwrap_or(false); + config.rust_debuginfo_tools = debuginfo_tools.unwrap_or(default); let default = debug == Some(true); config.rust_debuginfo = debuginfo.unwrap_or(default);