diff options
| author | Nick Cameron <ncameron@mozilla.com> | 2017-09-06 08:28:15 +1200 |
|---|---|---|
| committer | Nick Cameron <ncameron@mozilla.com> | 2017-09-14 16:36:29 +1200 |
| commit | 39c9a3d7961df049d77660131033c003e24364a3 (patch) | |
| tree | a3ff4a6713f39c6350ca6078befa6c6b300f329f | |
| parent | d1ca653b170c235ad01a83d89fcb18b1f8b6a3b0 (diff) | |
| download | rust-39c9a3d7961df049d77660131033c003e24364a3.tar.gz rust-39c9a3d7961df049d77660131033c003e24364a3.zip | |
Attempt to fix the component manifest problem for rls-preview
cc #44270
| -rw-r--r-- | src/bootstrap/dist.rs | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/bootstrap/dist.rs b/src/bootstrap/dist.rs index 9180c7d165a..7bca088dbd5 100644 --- a/src/bootstrap/dist.rs +++ b/src/bootstrap/dist.rs @@ -1098,8 +1098,14 @@ impl Step for Rls { .arg("--output-dir").arg(&distdir(build)) .arg("--non-installed-overlay").arg(&overlay) .arg(format!("--package-name={}-{}", name, target)) - .arg("--component-name=rls") .arg("--legacy-manifest-dirs=rustlib,cargo"); + + if build.config.channel == "nightly" { + cmd.arg("--component-name=rls"); + } else { + cmd.arg("--component-name=rls-preview"); + } + build.run(&mut cmd); distdir(build).join(format!("{}-{}.tar.gz", name, target)) } @@ -1302,9 +1308,12 @@ impl Step for Extended { cp_r(&work.join(&format!("{}-{}", pkgname(build, "rust-std"), target)) .join(format!("rust-std-{}", target)), &exe.join("rust-std")); - cp_r(&work.join(&format!("{}-{}", pkgname(build, "rls"), target)) - .join("rls"), - &exe.join("rls")); + let rls_path = if build.config.channel == "nightly" { + work.join(&format!("{}-{}", pkgname(build, "rls"), target)).join("rls") + } else { + work.join(&format!("{}-{}", pkgname(build, "rls"), target)).join("rls-preview") + }; + cp_r(&rls_path, &exe.join("rls")); cp_r(&work.join(&format!("{}-{}", pkgname(build, "rust-analysis"), target)) .join(format!("rust-analysis-{}", target)), &exe.join("rust-analysis")); |
