diff options
| author | bors <bors@rust-lang.org> | 2017-01-15 00:18:04 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-01-15 00:18:04 +0000 |
| commit | bf6d7b665b85506dac663945229f00a406904fa5 (patch) | |
| tree | 0ef4292da40273dbcbda3e1900924af370649e42 /src | |
| parent | ebe9682a25a4aa35b1c95ff73fb297209a8becd7 (diff) | |
| parent | 2c5ae529941d61e005d2e5a153ebc74600e38a78 (diff) | |
| download | rust-bf6d7b665b85506dac663945229f00a406904fa5.tar.gz rust-bf6d7b665b85506dac663945229f00a406904fa5.zip | |
Auto merge of #39026 - alexcrichton:more-less-cross-stage0, r=aturon
rustbuild: Actually don't build stage0 target rustc This was attempted in #38853 but erroneously forgot one more case of where the compiler was compiled. This commit fixes that up and adds a test to ensure this doesn't sneak back in.
Diffstat (limited to 'src')
| -rw-r--r-- | src/bootstrap/step.rs | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/bootstrap/step.rs b/src/bootstrap/step.rs index 65f3d241b49..289621184f0 100644 --- a/src/bootstrap/step.rs +++ b/src/bootstrap/step.rs @@ -545,7 +545,7 @@ pub fn build_rules<'a>(build: &'a Build) -> Rules { .run(move |s| doc::standalone(build, s.target)); rules.doc("doc-error-index", "src/tools/error_index_generator") .dep(move |s| s.name("tool-error-index").target(&build.config.build).stage(0)) - .dep(move |s| s.name("librustc-link").stage(0)) + .dep(move |s| s.name("librustc-link")) .default(build.config.docs) .host(true) .run(move |s| doc::error_index(build, s.target)); @@ -1306,6 +1306,18 @@ mod tests { println!("all rules: {:#?}", all); assert!(!all.contains(&step.name("rustc"))); assert!(!all.contains(&step.name("build-crate-std_shim").stage(1))); + + // all stage0 compiles should be for the build target, A + for step in all.iter().filter(|s| s.stage == 0) { + if !step.name.contains("build-crate") { + continue + } + println!("step: {:?}", step); + assert!(step.host != "B"); + assert!(step.target != "B"); + assert!(step.host != "C"); + assert!(step.target != "C"); + } } #[test] |
