diff options
| author | Pietro Albini <pietro@pietroalbini.org> | 2018-07-01 21:18:50 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-07-01 21:18:50 +0200 |
| commit | c78bfa33ddc1245936afc873ef150b3aa1fe7c09 (patch) | |
| tree | 7abc2325ebe031fc3557207b34a393a994f0f91a /src/bootstrap | |
| parent | 87b714b61948e55acb1ef75557d42ad2c98f224e (diff) | |
| parent | 6531879e91aebd4be282ccafeb761c19b3116a31 (diff) | |
| download | rust-c78bfa33ddc1245936afc873ef150b3aa1fe7c09.tar.gz rust-c78bfa33ddc1245936afc873ef150b3aa1fe7c09.zip | |
Rollup merge of #51922 - japaric:llvm-tools-preview, r=alexcrichton
rename the llvm-tools component to llvm-tools-preview and tweak its image as per https://github.com/rust-lang/rust/issues/49584#issuecomment-401217483 r? @alexcrichton or @Mark-Simulacrum
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/dist.rs | 17 |
1 files changed, 10 insertions, 7 deletions
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 @@ impl Step for LlvmTools { 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 @@ impl Step for LlvmTools { .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); |
