Skip to content

Commit 93a9ab1

Browse files
committed
rustbuild: Relax assertions about stage0
This allows bootstrapping new platforms immediately in stage0
1 parent 506522f commit 93a9ab1

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/bootstrap/build/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,7 @@ impl Build {
155155
&compiler, host);
156156
}
157157
Rustc { stage: 0 } => {
158-
assert!(target.target == self.config.build,
159-
"only have one stage0 compiler");
158+
// nothing to do...
160159
}
161160
Rustc { stage } => {
162161
compile::assemble_rustc(self, stage, target.target);

src/bootstrap/build/step.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,6 @@ impl<'a> Step<'a> {
194194
pub fn deps(&self, build: &'a Build) -> Vec<Step<'a>> {
195195
match self.src {
196196
Source::Rustc { stage: 0 } => {
197-
assert!(self.target == build.config.build);
198197
Vec::new()
199198
}
200199
Source::Rustc { stage } => {

0 commit comments

Comments
 (0)