diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2016-02-25 00:01:22 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2016-02-28 10:50:13 -0800 |
| commit | 93a9ab1a1bb1e692516a07ece2ec6958c1aa0d3f (patch) | |
| tree | ed6f151469e1b0b4eb8354468c014babf40c6947 /src/bootstrap | |
| parent | 506522ff4b7d25da6623791f4d620e3b1457fbdf (diff) | |
| download | rust-93a9ab1a1bb1e692516a07ece2ec6958c1aa0d3f.tar.gz rust-93a9ab1a1bb1e692516a07ece2ec6958c1aa0d3f.zip | |
rustbuild: Relax assertions about stage0
This allows bootstrapping new platforms immediately in stage0
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/build/mod.rs | 3 | ||||
| -rw-r--r-- | src/bootstrap/build/step.rs | 1 |
2 files changed, 1 insertions, 3 deletions
diff --git a/src/bootstrap/build/mod.rs b/src/bootstrap/build/mod.rs index 761a7cb4c48..ee4d7337dc1 100644 --- a/src/bootstrap/build/mod.rs +++ b/src/bootstrap/build/mod.rs @@ -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); diff --git a/src/bootstrap/build/step.rs b/src/bootstrap/build/step.rs index 49d418580a0..21c3c514698 100644 --- a/src/bootstrap/build/step.rs +++ b/src/bootstrap/build/step.rs @@ -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 } => { |
