Skip to content

Commit 78a0931

Browse files
committed
Debug CI failures
1 parent a284012 commit 78a0931

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/bootstrap/config.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -590,12 +590,12 @@ impl Config {
590590
set(&mut config.print_step_timings, build.print_step_timings);
591591

592592
// See https://github.com/rust-lang/compiler-team/issues/326
593-
config.stage = match config.cmd {
593+
config.stage = match dbg!(&config.cmd) {
594594
Subcommand::Doc { .. } => flags.stage.or(build.doc_stage).unwrap_or(0),
595595
Subcommand::Build { .. } => flags.stage.or(build.build_stage).unwrap_or(1),
596596
Subcommand::Test { .. } => flags.stage.or(build.test_stage).unwrap_or(1),
597597
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)),
599599
Subcommand::Install { .. } => flags.stage.or(build.install_stage).unwrap_or(2),
600600
// These are all bootstrap tools, which don't depend on the compiler.
601601
// The stage we pass shouldn't matter, but use 0 just in case.

src/bootstrap/flags.rs

+2
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ pub struct Flags {
4040
pub llvm_skip_rebuild: Option<bool>,
4141
}
4242

43+
#[derive(Debug)]
4344
pub enum Subcommand {
4445
Build {
4546
paths: Vec<PathBuf>,
@@ -98,6 +99,7 @@ impl Default for Subcommand {
9899

99100
impl Flags {
100101
pub fn parse(args: &[String]) -> Flags {
102+
dbg!(args);
101103
let mut extra_help = String::new();
102104
let mut subcommand_help = String::from(
103105
"\

0 commit comments

Comments
 (0)