From: Jorge Aparicio Date: Fri, 29 Jun 2018 21:13:40 +0000 (-0500) Subject: rename the llvm-tools component to llvm-tools-preview and tweak its image X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=c67566ac27b7f578596cb4cc9811d04fdc2eb8e4;p=rust.git rename the llvm-tools component to llvm-tools-preview and tweak its image --- diff --git a/src/bootstrap/dist.rs b/src/bootstrap/dist.rs index 4fd6c81e597..b5f34cdf336 100644 --- a/src/bootstrap/dist.rs +++ b/src/bootstrap/dist.rs @@ -1787,15 +1787,18 @@ fn run(self, builder: &Builder) -> Option { let tmp = tmpdir(builder); let image = tmp.join("llvm-tools-image"); drop(fs::remove_dir_all(&image)); - t!(fs::create_dir_all(&image.join("bin"))); // Prepare the image directory + let bindir = builder + .llvm_out(target) + .join("bin"); + let dst = image.join("lib/rustlib") + .join(target) + .join("bin"); + t!(fs::create_dir_all(&dst)); for tool in LLVM_TOOLS { - let exe = builder - .llvm_out(target) - .join("bin") - .join(exe(tool, &target)); - builder.install(&exe, &image.join("bin"), 0o755); + let exe = bindir.join(exe(tool, &target)); + builder.install(&exe, &dst, 0o755); } // Prepare the overlay @@ -1818,7 +1821,7 @@ fn run(self, builder: &Builder) -> Option { .arg("--non-installed-overlay").arg(&overlay) .arg(format!("--package-name={}-{}", name, target)) .arg("--legacy-manifest-dirs=rustlib,cargo") - .arg("--component-name=llvm-tools"); + .arg("--component-name=llvm-tools-preview"); builder.run(&mut cmd);