Skip to content

Commit

Permalink
Merge pull request #206 from dtolnay/bootstrap
Browse files Browse the repository at this point in the history
Respect pre-existing RUSTC_BOOTSTRAP setting
  • Loading branch information
dtolnay authored Dec 30, 2023
2 parents 15b4f91 + df2d289 commit 319bf87
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,10 @@ fn apply_args(cmd: &mut Command, args: &Expand, color: &Coloring, outfile: &Path
}

fn needs_rustc_bootstrap() -> bool {
if env::var_os("RUSTC_BOOTSTRAP").is_some_and(|var| !var.is_empty()) {
return false;
}

let rustc = if let Some(rustc) = env::var_os("RUSTC") {
PathBuf::from(rustc)
} else {
Expand Down

0 comments on commit 319bf87

Please sign in to comment.