]> git.lizzy.rs Git - rust.git/commitdiff
rustbuild: Relax assertions about stage0
authorAlex Crichton <alex@alexcrichton.com>
Thu, 25 Feb 2016 08:01:22 +0000 (00:01 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Sun, 28 Feb 2016 18:50:13 +0000 (10:50 -0800)
This allows bootstrapping new platforms immediately in stage0

src/bootstrap/build/mod.rs
src/bootstrap/build/step.rs

index 761a7cb4c48b8384346df9859bc46bb37e58d9b6..ee4d7337dc1be397fbb38b2b99b5eca45fa9f2a1 100644 (file)
@@ -155,8 +155,7 @@ fn setup_job() {
                                         &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);
index 49d418580a0b489c4a7c076e91ffafcf9739b5af..21c3c514698c6fe464c006a7d4dff06a20ace067 100644 (file)
@@ -194,7 +194,6 @@ fn target(&self, target: &'a str) -> 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 } => {