]> git.lizzy.rs Git - rust.git/commit
Auto merge of #44792 - Mark-Simulacrum:correct-deps, r=alexcrichton
authorbors <bors@rust-lang.org>
Fri, 20 Oct 2017 17:36:40 +0000 (17:36 +0000)
committerbors <bors@rust-lang.org>
Fri, 20 Oct 2017 17:36:40 +0000 (17:36 +0000)
commitb633341c49498488b6e3fce501e23e9f9f8fadec
tree60a9d960be0b2db28ef5a4912c5f29265a9cced3
parent87a8e8e07387f99ffe931b1f2bbc4c0585b16ccc
parent686c1015cfa341748b6de20114e8caba4626931b
Auto merge of #44792 - Mark-Simulacrum:correct-deps, r=alexcrichton

Make sure to clear out the stageN-{rustc,std,tools} directories.

We copy built tool binaries into a dedicated directory to avoid deleting them,
stageN-tools-bin.  These aren't ever cleared out by code, since there should be
no reason to do so, and we'll simply overwrite them as necessary.

When clearing out the stageN-{std,rustc,tools} directories, make sure to delete
both Cargo directories -- per-target and build scripts. This ensures that
changing libstd doesn't cause problems due to build scripts not being rebuilt,
even though they should be.

Fixes https://github.com/rust-lang/rust/issues/44739.
src/bootstrap/dist.rs