about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper
diff options
context:
space:
mode:
authorJoshua Nelson <jyn514@gmail.com>2021-02-28 23:51:15 -0500
committerJoshua Nelson <jyn514@gmail.com>2021-07-20 23:07:12 -0400
commit2ac0e9b6944bcff607e453ad8bd27800318de64f (patch)
tree5fc79b3948769c206b9eae1a8d0006fe820d95de /compiler/rustc_llvm/llvm-wrapper
parent89d260f86eacde2a44e3af02a99b0bdf3ffea35a (diff)
downloadrust-2ac0e9b6944bcff607e453ad8bd27800318de64f.tar.gz
rust-2ac0e9b6944bcff607e453ad8bd27800318de64f.zip
Update all submodules that rustbuild doesn't depend on lazily
This only updates the submodules the first time they're needed, instead
of unconditionally the first time you run x.py.

Ideally, this would move *all* submodules and not exclude some tools and
backtrace. Unfortunately, cargo requires all `Cargo.toml` files in the
whole workspace to be present to build any crate.

On my machine, this takes the time for an initial submodule clone (for
`x.py --help`) from 55.70 to 15.87 seconds.

This uses exactly the same logic as the LLVM update used, modulo some
minor cleanups:
- Use a local variable for `src.join(relative_path)`
- Remove unnecessary arrays for `book!` macro and make the macro simpler to use
- Add more comments
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper')
0 files changed, 0 insertions, 0 deletions