Skip to content

Commit fe1c67f

Browse files
committed
Debugging for rust-lang/rust#59661
1 parent 078d3b3 commit fe1c67f

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

src/sysroot.rs

+19-1
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,25 @@ pub fn update(
299299
Err(e) => {
300300
writeln!(
301301
stderr,
302-
"Unable to copy the directory 'bin' from sysroot: {}",
302+
"Unable to copy the directory 'bin' in 'lib/rustlib' from sysroot: {}",
303+
e
304+
)
305+
.ok();
306+
}
307+
};
308+
match util::cp_r(
309+
&sysroot
310+
.path()
311+
.join("bin/rustlib")
312+
.join(&meta.host)
313+
.join("bin"),
314+
&bin_dst,
315+
) {
316+
Ok(()) => {}
317+
Err(e) => {
318+
writeln!(
319+
stderr,
320+
"Unable to copy the directory 'bin' in 'bin/rustlib' from sysroot: {}",
303321
e
304322
)
305323
.ok();

0 commit comments

Comments
 (0)