rustbuild: fix local_rebuild · rust-lang/rust@66a4718 (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Commit 66a4718

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 Marc-Antoine@Perennou.com

File tree

1 file changed

lines changed

1 file changed

lines changed

Original file line number Diff line number Diff line change
@@ -777,7 +777,7 @@ impl<'a> Builder<'a> {
777 777 // compiler, but for tools we just use the precompiled libraries that
778 778 // we've downloaded
779 779 let use_snapshot = mode == Mode::ToolBootstrap;
780 -assert!(!use_snapshot |
780 +assert!(!use_snapshot |
781 781
782 782 let maybe_sysroot = self.sysroot(compiler);
783 783 let sysroot = if use_snapshot {