Skip to content

Commit 5cc6eb4

Browse files
committed
Move debuginfo level handling to builder.rs
1 parent 5abc4cd commit 5cc6eb4

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/bootstrap/bin/rustc.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,6 @@ fn main() {
9797
cmd.env("RUST_BACKTRACE", "1");
9898
}
9999

100-
if let Ok(debuginfo_level) = env::var("RUSTC_DEBUGINFO_LEVEL") {
101-
cmd.arg(format!("-Cdebuginfo={}", debuginfo_level));
102-
}
103-
104100
if let Some(target) = target {
105101
// The stage0 compiler has a special sysroot distinct from what we
106102
// actually downloaded, so we just always pass the `--sysroot` option,

src/bootstrap/builder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -995,7 +995,7 @@ impl<'a> Builder<'a> {
995995
Mode::ToolBootstrap | Mode::ToolStd |
996996
Mode::ToolRustc => self.config.rust_debuginfo_level_tools,
997997
};
998-
cargo.env("RUSTC_DEBUGINFO_LEVEL", debuginfo_level.to_string());
998+
cargo.env(profile_var("DEBUG"), debuginfo_level.to_string());
999999

10001000
if !mode.is_tool() {
10011001
cargo.env("RUSTC_FORCE_UNSTABLE", "1");

0 commit comments

Comments
 (0)