diff options
| author | bors <bors@rust-lang.org> | 2017-01-01 20:43:21 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-01-01 20:43:21 +0000 |
| commit | 917e5baae7ff931b13a8b40d2fce60395fefe7a4 (patch) | |
| tree | 947dabf1493138962e73a4fb98fe72bec8482fc1 | |
| parent | 4947adaa8c084914656bad7f2fafad45f2853046 (diff) | |
| parent | 24c7340e3e620d0901dfeeab080110193611a6c8 (diff) | |
| download | rust-917e5baae7ff931b13a8b40d2fce60395fefe7a4.tar.gz rust-917e5baae7ff931b13a8b40d2fce60395fefe7a4.zip | |
Auto merge of #38765 - xen0n:i-dont-like-red-bots-2, r=alexcrichton
rustbuild: fix dist-analysis with full bootstrap disabled Really fixes #38734, per discussion in #38752 which was solving the underlying problem the wrong way. This just mirrors the [similar logic] in documentation building as suggested, that just takes the stage1 compiler artifacts instead in case of non-full-bootstrap builds. Actually copying the artifacts around seems to be unnecessary. r? @alexcrichton [similar logic]: https://github.com/rust-lang/rust/blob/7b659cfdbce094a790dbb246da2681a47565782a/src/bootstrap/doc.rs#L140-L144
| -rw-r--r-- | src/bootstrap/dist.rs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/bootstrap/dist.rs b/src/bootstrap/dist.rs index 428c3da7764..9b0c7a04d6b 100644 --- a/src/bootstrap/dist.rs +++ b/src/bootstrap/dist.rs @@ -320,10 +320,18 @@ pub fn analysis(build: &Build, compiler: &Compiler, target: &str) { return } + // Package save-analysis from stage1 if not doing a full bootstrap, as the + // stage2 artifacts is simply copied from stage1 in that case. + let compiler = if build.force_use_stage1(compiler, target) { + Compiler::new(1, compiler.host) + } else { + compiler.clone() + }; + let name = format!("rust-analysis-{}", package_vers(build)); let image = tmpdir(build).join(format!("{}-{}-image", name, target)); - let src = build.stage_out(compiler, Mode::Libstd).join(target).join("release").join("deps"); + let src = build.stage_out(&compiler, Mode::Libstd).join(target).join("release").join("deps"); let image_src = src.join("save-analysis"); let dst = image.join("lib/rustlib").join(target).join("analysis"); |
