rust/src/etc
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
..
platform-intrinsics rustc: Improve compile time of platform intrinsics 2016-03-15 17:32:34 -07:00
test-float-parse drive-by doc fixes 2016-02-04 16:28:08 +01:00
third-party Strip all leading/trailing newlines 2015-03-15 09:08:21 -07:00
adb_run_wrapper.sh Add one more depth on android test directory for multiple targets 2015-02-10 21:53:31 +09:00
apple-darwin.supp update valgrind suppressions 2015-12-25 15:46:36 -05:00
check-binaries.py add shebang to scripts that have execute bit set 2014-05-12 19:52:29 -07:00
check-sanitycheck.py Fix platform detection 2015-06-01 20:50:35 +03:00
check-summary.py etc: py3 compat for check-summary.py 2015-05-24 05:12:40 -07:00
CONFIGS.md remove broken config 2016-03-24 17:27:15 -04:00
ctags.rust Update the ctags rules and targets. 2015-07-30 06:35:42 +10:00
debugger_pretty_printers_common.py fix pretty printers to handle new Vec 2015-07-17 10:43:58 -07:00
dec2flt_table.py Speed up dec2flt fast path with additional tables. 2016-01-12 22:25:16 +01:00
errorck.py show location of unused error codes 2016-01-31 17:19:38 -05:00
featureck.py Rename #[deprecated] to #[rustc_deprecated] 2015-11-20 16:11:20 +03:00
gdb_load_rust_pretty_printers.py debuginfo: Add a rust-gdb shell script that will start GDB with Rust pretty printers enabled. 2014-12-30 17:26:13 +01:00
gdb_rust_pretty_printing.py debuginfo: Create common debugger pretty printer module. 2015-05-30 20:06:08 +02:00
generate-deriving-span-tests.py Remove #[derive(Show)] 2015-10-18 19:12:09 +03:00
generate-keyword-tests.py Fix PEP8 for generate-keyword-tests 2015-01-27 01:26:03 -08:00
get-snapshot.py Fix PEP8 in snapshot.py 2015-01-27 01:26:02 -08:00
htmldocck.py Improve htmldocck.py error messages 2015-12-10 17:34:54 +01:00
indenter Port indenter to python 2015-01-16 08:49:54 -08:00
latest-unix-snaps.py Fix PEP8 for latest-unix-snaps.py 2015-01-27 01:26:03 -08:00
licenseck.py mk: Tweak tidy script to work on Windows python 2016-02-23 17:52:26 -08:00
lldb_batchmode.py Fix PEP8 in lldb_batchmode.py 2015-01-27 01:25:54 -08:00
lldb_rust_formatters.py debuginfo: Create common debugger pretty printer module. 2015-05-30 20:06:08 +02:00
local_stage0.sh Add Illumos support 2016-01-31 18:57:26 +03:00
make-snapshot.py add shebang to scripts that have execute bit set 2014-05-12 19:52:29 -07:00
make-win-dist.py Make sure rsbegin.o and rsend.o get packaged with target lib artifacts. 2015-11-07 17:56:55 -08:00
maketest.py pass CXX to run-make 2016-02-16 06:30:30 +01:00
mirror-all-snapshots.py Fix PEP8 in mirror-all-snapshots 2015-01-27 01:26:03 -08:00
mklldeps.py Better support for --llvm-root. 2015-12-13 15:05:43 -06:00
rust-gdb debuginfo: Add a rust-gdb shell script that will start GDB with Rust pretty printers enabled. 2014-12-30 17:26:13 +01:00
rust-lldb rustc: Start "stabilizing" some flags 2014-12-19 11:38:24 -08:00
snapshot.py Rename sunos to solaris 2016-01-31 19:01:30 +03:00
sugarise-doc-comments.py Fix PEP8 in sugarise-doc-comments 2015-01-27 01:26:02 -08:00
tidy.py rustbuild: Fix dist for non-host targets 2016-04-01 10:18:36 -07:00
unicode.py libsyntax: accept only whitespace with the PATTERN_WHITE_SPACE property 2016-01-16 00:57:12 +00:00
x86.supp update valgrind suppressions 2015-12-25 15:46:36 -05:00
ziggurat_tables.py std: Move rand to librand. 2014-03-12 11:31:05 +11:00