File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -590,12 +590,12 @@ impl Config {
590
590
set ( & mut config. print_step_timings , build. print_step_timings ) ;
591
591
592
592
// See https://github.com/rust-lang/compiler-team/issues/326
593
- config. stage = match config. cmd {
593
+ config. stage = match dbg ! ( & config. cmd) {
594
594
Subcommand :: Doc { .. } => flags. stage . or ( build. doc_stage ) . unwrap_or ( 0 ) ,
595
595
Subcommand :: Build { .. } => flags. stage . or ( build. build_stage ) . unwrap_or ( 1 ) ,
596
596
Subcommand :: Test { .. } => flags. stage . or ( build. test_stage ) . unwrap_or ( 1 ) ,
597
597
Subcommand :: Bench { .. } => flags. stage . or ( build. bench_stage ) . unwrap_or ( 2 ) ,
598
- Subcommand :: Dist { .. } => flags. stage . or ( build. dist_stage ) . unwrap_or ( 2 ) ,
598
+ Subcommand :: Dist { .. } => dbg ! ( dbg! ( flags. stage) . or( build. dist_stage) . unwrap_or( 2 ) ) ,
599
599
Subcommand :: Install { .. } => flags. stage . or ( build. install_stage ) . unwrap_or ( 2 ) ,
600
600
// These are all bootstrap tools, which don't depend on the compiler.
601
601
// The stage we pass shouldn't matter, but use 0 just in case.
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ pub struct Flags {
40
40
pub llvm_skip_rebuild : Option < bool > ,
41
41
}
42
42
43
+ #[ derive( Debug ) ]
43
44
pub enum Subcommand {
44
45
Build {
45
46
paths : Vec < PathBuf > ,
@@ -98,6 +99,7 @@ impl Default for Subcommand {
98
99
99
100
impl Flags {
100
101
pub fn parse ( args : & [ String ] ) -> Flags {
102
+ dbg ! ( args) ;
101
103
let mut extra_help = String :: new ( ) ;
102
104
let mut subcommand_help = String :: from (
103
105
"\
You can’t perform that action at this time.
0 commit comments