rust/src/librustdoc
Alex Crichton 3d6340ffe2 rustbuild: Fix dist for non-host targets
The `rust-std` package that we produce is expected to have not only the standard
library but also libtest for compiling unit tests. Unfortunately this does not
currently happen due to the way rustbuild is structured.

There are currently two main stages of compilation in rustbuild, one for the
standard library and one for the compiler. This is primarily done to allow us to
fill in the sysroot right after the standard library has finished compiling to
continue compiling the rest of the crates. Consequently the entire compiler does
not have to explicitly depend on the standard library, and this also should
allow us to pull in crates.io dependencies into the build in the future because
they'll just naturally build against the std we just produced.

These phases, however, do not represent a cross-compiled build. Target-only
builds also require libtest, and libtest is currently part of the
all-encompassing "compiler build". There's unfortunately no way to learn about
just libtest and its dependencies (in a great and robust fashion) so to ensure
that we can copy the right artifacts over this commit introduces a new build
step, libtest.

The new libtest build step has documentation, dist, and link steps as std/rustc
already do. The compiler now depends on libtest instead of libstd, and all
compiler crates can now assume that test and its dependencies are implicitly
part of the sysroot (hence explicit dependencies being removed). This makes the
build a tad less parallel as in theory many rustc crates can be compiled in
parallel with libtest, but this likely isn't where we really need parallelism
either (all the time is still spent in the compiler).

All in all this allows the `dist-std` step to depend on both libstd and libtest,
so `rust-std` packages produced by rustbuild should start having both the
standard library and libtest.

Closes #32523
2016-04-01 10:18:36 -07:00
..
clean rustc: move cfg, infer, traits and ty from middle to top-level. 2016-03-27 01:05:54 +02:00
html Avoid page reload upon hitting "S" when browing in local mode 2016-03-25 21:35:10 +01:00
build.rs bootstrap: Add directives to not double-link libs 2016-02-11 11:12:32 -08:00
Cargo.toml rustbuild: Fix dist for non-host targets 2016-04-01 10:18:36 -07:00
core.rs rustc: move cfg, infer, traits and ty from middle to top-level. 2016-03-27 01:05:54 +02:00
doctree.rs Abstract away differences between Vec and ptr::P in HIR 2015-12-18 00:52:56 +03:00
externalfiles.rs try! -> ? 2016-03-22 22:01:37 -05:00
flock.rs Rename sunos to solaris 2016-01-31 19:01:30 +03:00
fold.rs This doesn't seem necessary? 2016-03-04 19:40:01 +01:00
lib.rs Auto merge of #32454 - eddyb:rollup, r=eddyb 2016-03-23 12:33:04 -07:00
markdown.rs Use --cfg when running doctests 2015-12-15 18:03:55 +09:00
passes.rs Consider doc(no_inline) in crate-local inlining 2016-03-22 21:11:00 +01:00
plugins.rs std: Clean out deprecated APIs 2016-03-12 12:31:13 -08:00
test.rs Make AssertRecoverSafe's field public 2016-03-17 23:37:20 -07:00
visit_ast.rs Consider doc(no_inline) in crate-local inlining 2016-03-22 21:11:00 +01:00