Skip to content

Commit

Permalink
Merge #200
Browse files Browse the repository at this point in the history
200: Copy bin directory to host sysroot r=japaric a=FenrirWolf

Allows custom targets to use the copy of `lld` bundled with Rust.

cc rust-lang/rust#48772
  • Loading branch information
bors[bot] committed Mar 9, 2018
2 parents db0191b + 9787b69 commit 6e8347d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/sysroot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,17 @@ pub fn update(
&dst,
)?;

let bin_dst = lock.parent().join("bin");
util::mkdir(&bin_dst)?;
util::cp_r(
&sysroot
.path()
.join("lib/rustlib")
.join(&meta.host)
.join("bin"),
&bin_dst,
)?;

util::write(&hfile, hash)?;

Ok(())
Expand Down

0 comments on commit 6e8347d

Please sign in to comment.