Skip to content

Commit 43905cd

Browse files
committed
Move shipped MinGW linker to self-contained dir
1 parent e9ac01a commit 43905cd

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/bootstrap/dist.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,12 @@ fn make_win_dist(
306306
}
307307

308308
//Copy platform tools to platform-specific bin directory
309-
let target_bin_dir = plat_root.join("lib").join("rustlib").join(target_triple).join("bin");
309+
let target_bin_dir = plat_root
310+
.join("lib")
311+
.join("rustlib")
312+
.join(target_triple)
313+
.join("bin")
314+
.join("self-contained");
310315
fs::create_dir_all(&target_bin_dir).expect("creating target_bin_dir failed");
311316
for src in target_tools {
312317
builder.copy_to_folder(&src, &target_bin_dir);

src/librustc_session/filesearch.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ impl<'a> FileSearch<'a> {
9898
p.push(RUST_LIB_DIR);
9999
p.push(&self.triple);
100100
p.push("bin");
101-
vec![p]
101+
vec![p.clone(), p.join("self-contained")]
102102
}
103103
}
104104

0 commit comments

Comments
 (0)