Skip to content

Commit 763470d

Browse files
committed
rustbuild: Untie debuginfo-level-tests from debuginfo-level
1 parent 3da7bbc commit 763470d

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

config.toml.example

+5-3
Original file line numberDiff line numberDiff line change
@@ -301,11 +301,13 @@
301301
# library.
302302
#debug-assertions = false
303303

304-
# Debuginfo level for Rust code, corresponds to the `-C debuginfo=N` option of `rustc`.
304+
# Debuginfo level for most of Rust code, corresponds to the `-C debuginfo=N` option of `rustc`.
305305
# `0` - no debug info
306306
# `1` - line tables only
307307
# `2` - full debug info with variable and type information
308-
# Can be overriden for specific subsets of Rust code (rustc, std, tools or tests).
308+
# Can be overriden for specific subsets of Rust code (rustc, std or tools).
309+
# Debuginfo for tests run with compiletest is not controlled by this option
310+
# and needs to be enabled separately with `debuginfo-level-tests`.
309311
#debuginfo-level = if debug { 2 } else { 0 }
310312

311313
# Debuginfo level for the compiler.
@@ -318,7 +320,7 @@
318320
#debuginfo-level-tools = debuginfo-level
319321

320322
# Debuginfo level for the test suites run with compiletest.
321-
#debuginfo-level-tests = debuginfo-level
323+
#debuginfo-level-tests = 0
322324

323325
# Whether or not `panic!`s generate backtraces (RUST_BACKTRACE)
324326
#backtrace = true

src/bootstrap/config.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ impl Config {
650650
config.rust_debuginfo_level_rustc = with_defaults(debuginfo_level_rustc);
651651
config.rust_debuginfo_level_std = with_defaults(debuginfo_level_std);
652652
config.rust_debuginfo_level_tools = with_defaults(debuginfo_level_tools);
653-
config.rust_debuginfo_level_tests = with_defaults(debuginfo_level_tests);
653+
config.rust_debuginfo_level_tests = debuginfo_level_tests.unwrap_or(0);
654654

655655
let default = config.channel == "dev";
656656
config.ignore_git = ignore_git.unwrap_or(default);

0 commit comments

Comments
 (0)