Skip to content

Commit 66a4718

Browse files
committed
rustbuild: fix local_rebuild
If we detect a local rebuild (e.g. bootstrap compiler is the same version as target compiler), we set stage to 1. When trying to build e.g. UnstableBook, we use Mode::ToolBootstrap and stage is 1. Just allow Mode::ToolBootstrap and stagge != 0 if we are in a local_rebuild Signed-off-by: Marc-Antoine Perennou <[email protected]>
1 parent db54765 commit 66a4718

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bootstrap/builder.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,7 @@ impl<'a> Builder<'a> {
777777
// compiler, but for tools we just use the precompiled libraries that
778778
// we've downloaded
779779
let use_snapshot = mode == Mode::ToolBootstrap;
780-
assert!(!use_snapshot || stage == 0);
780+
assert!(!use_snapshot || stage == 0 || self.local_rebuild);
781781

782782
let maybe_sysroot = self.sysroot(compiler);
783783
let sysroot = if use_snapshot {

0 commit comments

Comments
 (0)