File tree Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -97,10 +97,6 @@ fn main() {
97
97
cmd. env ( "RUST_BACKTRACE" , "1" ) ;
98
98
}
99
99
100
- if let Ok ( debuginfo_level) = env:: var ( "RUSTC_DEBUGINFO_LEVEL" ) {
101
- cmd. arg ( format ! ( "-Cdebuginfo={}" , debuginfo_level) ) ;
102
- }
103
-
104
100
if let Some ( target) = target {
105
101
// The stage0 compiler has a special sysroot distinct from what we
106
102
// actually downloaded, so we just always pass the `--sysroot` option,
Original file line number Diff line number Diff line change @@ -995,7 +995,7 @@ impl<'a> Builder<'a> {
995
995
Mode :: ToolBootstrap | Mode :: ToolStd |
996
996
Mode :: ToolRustc => self . config . rust_debuginfo_level_tools ,
997
997
} ;
998
- cargo. env ( "RUSTC_DEBUGINFO_LEVEL" , debuginfo_level. to_string ( ) ) ;
998
+ cargo. env ( profile_var ( "DEBUG" ) , debuginfo_level. to_string ( ) ) ;
999
999
1000
1000
if !mode. is_tool ( ) {
1001
1001
cargo. env ( "RUSTC_FORCE_UNSTABLE" , "1" ) ;
You can’t perform that action at this time.
0 commit comments