about summary refs log tree commit diff
path: root/compiler/rustc_llvm/src/lib.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-05-23 00:40:48 +0000
committerbors <bors@rust-lang.org>2021-05-23 00:40:48 +0000
commit9c3a2a57ef1f9f7adeaf997d8ff7cdf699aa364c (patch)
treedf31b3aaad6ffe941d0fd8f859f170451de8bdd0 /compiler/rustc_llvm/src/lib.rs
parente4ca1662f255db774dcd16ed9c3776bf25ac8361 (diff)
parent0be4046bf91ea3726098e7714642697c43af7e98 (diff)
downloadrust-9c3a2a57ef1f9f7adeaf997d8ff7cdf699aa364c.tar.gz
rust-9c3a2a57ef1f9f7adeaf997d8ff7cdf699aa364c.zip
Auto merge of #81601 - jyn514:llvm-on-demand, r=Mark-Simulacrum
Move llvm submodule updates to rustbuild

This enables better caching, since LLVM is only updated when needed, not
whenever x.py is run. Before, bootstrap.py had to use heuristics to
guess if LLVM would be needed, and updated the module more often than
necessary as a result.

This syncs the LLVM submodule only just before building the compiler, so
people working on the standard library never have to worry about it.
Example output:

```
Copying stage0 std from stage0 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
Updating submodule src/llvm-project
Submodule 'src/llvm-project' (https://github.com/rust-lang/llvm-project.git) registered for path 'src/llvm-project'
Submodule path 'src/llvm-project': checked out 'f9a8d70b6e0365ac2172ca6b7f1de0341297458d'
```

Implements https://github.com/rust-lang/rust/issues/76653#issuecomment-770265169. This could be easily extended to other submodules, like `rust-by-example` and `rustc-dev-guide`, which aren't needed for cargo's workspace resolution.
Diffstat (limited to 'compiler/rustc_llvm/src/lib.rs')
0 files changed, 0 insertions, 0 deletions