Skip to content

Commit

Permalink
Debug CI failures
Browse files Browse the repository at this point in the history
  • Loading branch information
jyn514 committed Sep 16, 2020
1 parent a284012 commit 78a0931
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bootstrap/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -590,12 +590,12 @@ impl Config {
set(&mut config.print_step_timings, build.print_step_timings);

// See https://github.com/rust-lang/compiler-team/issues/326
config.stage = match config.cmd {
config.stage = match dbg!(&config.cmd) {
Subcommand::Doc { .. } => flags.stage.or(build.doc_stage).unwrap_or(0),
Subcommand::Build { .. } => flags.stage.or(build.build_stage).unwrap_or(1),
Subcommand::Test { .. } => flags.stage.or(build.test_stage).unwrap_or(1),
Subcommand::Bench { .. } => flags.stage.or(build.bench_stage).unwrap_or(2),
Subcommand::Dist { .. } => flags.stage.or(build.dist_stage).unwrap_or(2),
Subcommand::Dist { .. } => dbg!(dbg!(flags.stage).or(build.dist_stage).unwrap_or(2)),
Subcommand::Install { .. } => flags.stage.or(build.install_stage).unwrap_or(2),
// These are all bootstrap tools, which don't depend on the compiler.
// The stage we pass shouldn't matter, but use 0 just in case.
Expand Down
2 changes: 2 additions & 0 deletions src/bootstrap/flags.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ pub struct Flags {
pub llvm_skip_rebuild: Option<bool>,
}

#[derive(Debug)]
pub enum Subcommand {
Build {
paths: Vec<PathBuf>,
Expand Down Expand Up @@ -98,6 +99,7 @@ impl Default for Subcommand {

impl Flags {
pub fn parse(args: &[String]) -> Flags {
dbg!(args);
let mut extra_help = String::new();
let mut subcommand_help = String::from(
"\
Expand Down

0 comments on commit 78a0931

Please sign in to comment.