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() {
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,
Original file line number Diff line number Diff 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" ) ;
You can’t perform that action at this time.
0 commit comments