rustbuild: Relax assertions about stage0

This allows bootstrapping new platforms immediately in stage0
This commit is contained in:
Alex Crichton 2016-02-25 00:01:22 -08:00
parent 506522ff4b
commit 93a9ab1a1b
2 changed files with 1 additions and 3 deletions

View file

@ -155,8 +155,7 @@ impl Build {
&compiler, host);
}
Rustc { stage: 0 } => {
assert!(target.target == self.config.build,
"only have one stage0 compiler");
// nothing to do...
}
Rustc { stage } => {
compile::assemble_rustc(self, stage, target.target);

View file

@ -194,7 +194,6 @@ impl<'a> Step<'a> {
pub fn deps(&self, build: &'a Build) -> Vec<Step<'a>> {
match self.src {
Source::Rustc { stage: 0 } => {
assert!(self.target == build.config.build);
Vec::new()
}
Source::Rustc { stage } => {