about summary refs log tree commit diff
path: root/library/std/src/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2020-06-19 14:29:35 +0200
committerGitHub <noreply@github.com>2020-06-19 14:29:35 +0200
commit61c8925310f5a8eb5b0faaf582c435de326a8e7f (patch)
tree227579b6a22580e046493bb93b2adb946f9db021 /library/std/src/sys/unix/stack_overflow.rs
parenta59d164490d0011b92613f514fdeb76e5c15c068 (diff)
parentf17fd7b0e692c59075db58ac2e7ca3ac2d5e19bd (diff)
downloadrust-61c8925310f5a8eb5b0faaf582c435de326a8e7f.tar.gz
rust-61c8925310f5a8eb5b0faaf582c435de326a8e7f.zip
Rollup merge of #73352 - ehuss:bootstrap-metadata, r=Mark-Simulacrum
Speed up bootstrap a little.

The bootstrap script was calling `cargo metadata` 3 times (or 6 with `-v`). This is a very expensive operation, and this attempts to avoid the extra calls. On my system, a simple command like `./x.py test -h -v` goes from about 3 seconds to 0.4.

An overview of the changes:

- Call `cargo metadata` only once with `--no-deps`. Optional dependencies are filtered in `in_tree_crates` (handling `profiler_builtins` and `rustc_codegen_llvm` which are driven by the config).
- Remove a duplicate call to `metadata::build` when using `-v`. I'm not sure why it was there, it looks like a mistake or vestigial from previous behavior.
- Remove check for `_shim`, I believe all the `_shim` crates are now gone.
- Remove check for `rustc_` and `*san` for `test::Crate::should_run`, these are no longer dependencies in the `test` tree.
- Use relative paths in `./x.py test -h -v` output.
- Some code cleanup (remove unnecessary `find_compiler_crates`, etc.).
- Show suite paths (`src/test/ui/...`) in `./x.py test -h -v` output.
- Some doc comments.
Diffstat (limited to 'library/std/src/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions