Skip to content

Commit

Permalink
Move shipped MinGW linker to self-contained dir
Browse files Browse the repository at this point in the history
  • Loading branch information
mati865 committed Jun 11, 2020
1 parent e9ac01a commit 43905cd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/bootstrap/dist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,12 @@ fn make_win_dist(
}

//Copy platform tools to platform-specific bin directory
let target_bin_dir = plat_root.join("lib").join("rustlib").join(target_triple).join("bin");
let target_bin_dir = plat_root
.join("lib")
.join("rustlib")
.join(target_triple)
.join("bin")
.join("self-contained");
fs::create_dir_all(&target_bin_dir).expect("creating target_bin_dir failed");
for src in target_tools {
builder.copy_to_folder(&src, &target_bin_dir);
Expand Down
2 changes: 1 addition & 1 deletion src/librustc_session/filesearch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ impl<'a> FileSearch<'a> {
p.push(RUST_LIB_DIR);
p.push(&self.triple);
p.push("bin");
vec![p]
vec![p.clone(), p.join("self-contained")]
}
}

Expand Down

0 comments on commit 43905cd

Please sign in to comment.