We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ceab612 commit f841b26Copy full SHA for f841b26
src/bootstrap/src/core/build_steps/tool.rs
@@ -746,9 +746,11 @@ impl Step for LlvmBitcodeLinker {
746
.join(exe(bin_name, self.compiler.host));
747
748
if self.compiler.stage > 0 {
749
- let bindir = builder.sysroot(self.compiler).join("bin");
750
- t!(fs::create_dir_all(&bindir));
751
- let bin_destination = bindir.join(exe(bin_name, self.compiler.host));
+ let bindir_self_contained = builder
+ .sysroot(self.compiler)
+ .join(format!("lib/rustlib/{}/bin/self-contained", self.target.triple));
752
+ t!(fs::create_dir_all(&bindir_self_contained));
753
+ let bin_destination = bindir_self_contained.join(exe(bin_name, self.compiler.host));
754
builder.copy_link(&tool_out, &bin_destination);
755
bin_destination
756
} else {
0 commit comments