Skip to content

Commit c67566a

Browse files
committed
rename the llvm-tools component to llvm-tools-preview and tweak its image
1 parent 5fdcd3a commit c67566a

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

src/bootstrap/dist.rs

+10-7
Original file line numberDiff line numberDiff line change
@@ -1787,15 +1787,18 @@ impl Step for LlvmTools {
17871787
let tmp = tmpdir(builder);
17881788
let image = tmp.join("llvm-tools-image");
17891789
drop(fs::remove_dir_all(&image));
1790-
t!(fs::create_dir_all(&image.join("bin")));
17911790

17921791
// Prepare the image directory
1792+
let bindir = builder
1793+
.llvm_out(target)
1794+
.join("bin");
1795+
let dst = image.join("lib/rustlib")
1796+
.join(target)
1797+
.join("bin");
1798+
t!(fs::create_dir_all(&dst));
17931799
for tool in LLVM_TOOLS {
1794-
let exe = builder
1795-
.llvm_out(target)
1796-
.join("bin")
1797-
.join(exe(tool, &target));
1798-
builder.install(&exe, &image.join("bin"), 0o755);
1800+
let exe = bindir.join(exe(tool, &target));
1801+
builder.install(&exe, &dst, 0o755);
17991802
}
18001803

18011804
// Prepare the overlay
@@ -1818,7 +1821,7 @@ impl Step for LlvmTools {
18181821
.arg("--non-installed-overlay").arg(&overlay)
18191822
.arg(format!("--package-name={}-{}", name, target))
18201823
.arg("--legacy-manifest-dirs=rustlib,cargo")
1821-
.arg("--component-name=llvm-tools");
1824+
.arg("--component-name=llvm-tools-preview");
18221825

18231826

18241827
builder.run(&mut cmd);

0 commit comments

Comments
 (0)