]> git.lizzy.rs Git - rust.git/commit
Auto merge of #63637 - alexcrichton:remove-libtest-step, r=Mark-Simulacrum
authorbors <bors@rust-lang.org>
Sat, 24 Aug 2019 05:39:52 +0000 (05:39 +0000)
committerbors <bors@rust-lang.org>
Sat, 24 Aug 2019 05:39:52 +0000 (05:39 +0000)
commit478464570e60523adc6d303577d1782229ca1f93
treecc43c50ef24c7bcae79767d5b1d00b2c7ae08863
parentc2f3174a278d587666b51adafd47d6147e4fd707
parentb47c9690d2974ec0318f1e87bf38f8f7ee6cf202
Auto merge of #63637 - alexcrichton:remove-libtest-step, r=Mark-Simulacrum

bootstrap: Merge the libtest build step with libstd

Since its inception rustbuild has always worked in three stages: one for
libstd, one for libtest, and one for rustc. These three stages were
architected around crates.io dependencies, where rustc wants to depend
on crates.io crates but said crates don't explicitly depend on libstd,
requiring a sysroot assembly step in the middle. This same logic was
applied for libtest where libtest wants to depend on crates.io crates
(`getopts`) but `getopts` didn't say that it depended on std, so it
needed `std` built ahead of time.

Lots of time has passed since the inception of rustbuild, however,
and we've since gotten to the point where even `std` itself is depending
on crates.io crates (albeit with some wonky configuration). This
commit applies the same logic to the two dependencies that the `test`
crate pulls in from crates.io, `getopts` and `unicode-width`. Over the
many years since rustbuild's inception `unicode-width` was the only
dependency picked up by the `test` crate, so the extra configuration
necessary to get crates building in this crate graph is unlikely to be
too much of a burden on developers.

After this patch it means that there are now only two build phasese of
rustbuild, one for libstd and one for rustc. The libtest/libproc_macro
build phase is all lumped into one now with `std`.

This was originally motivated by rust-lang/cargo#7216 where Cargo was
having to deal with synthesizing dependency edges but this commit makes
them explicit in this repository.