about summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2016-02-25 00:01:22 -0800
committerAlex Crichton <alex@alexcrichton.com>2016-02-28 10:50:13 -0800
commit93a9ab1a1bb1e692516a07ece2ec6958c1aa0d3f (patch)
treeed6f151469e1b0b4eb8354468c014babf40c6947 /src/bootstrap
parent506522ff4b7d25da6623791f4d620e3b1457fbdf (diff)
downloadrust-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.rs3
-rw-r--r--src/bootstrap/build/step.rs1
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 } => {