From 9787b692be1cb7d3602a4b2d68d4b545af2f5cc2 Mon Sep 17 00:00:00 2001 From: FenrirWolf Date: Wed, 7 Mar 2018 16:52:52 -0700 Subject: [PATCH] Copy bin directory to host sysroot --- src/sysroot.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/sysroot.rs b/src/sysroot.rs index 6fba61e..1a0d9da 100644 --- a/src/sysroot.rs +++ b/src/sysroot.rs @@ -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(())