From 93a9ab1a1bb1e692516a07ece2ec6958c1aa0d3f Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 25 Feb 2016 00:01:22 -0800 Subject: [PATCH] rustbuild: Relax assertions about stage0 This allows bootstrapping new platforms immediately in stage0 --- src/bootstrap/build/mod.rs | 3 +-- src/bootstrap/build/step.rs | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/bootstrap/build/mod.rs b/src/bootstrap/build/mod.rs index 761a7cb4c48b8..ee4d7337dc1be 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 49d418580a0b4..21c3c514698c6 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> { match self.src { Source::Rustc { stage: 0 } => { - assert!(self.target == build.config.build); Vec::new() } Source::Rustc { stage } => {