about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-09-29 16:41:53 +0000
committerbors <bors@rust-lang.org>2020-09-29 16:41:53 +0000
commit9b77a6a20021cb8783111c04e9260963f15b550e (patch)
tree96f09089b91b1ae5fe02df21a6e029da69d7d02a /compiler/rustc_codegen_llvm/src
parent4d52dc4790cfaf3f23ff219c9a9932be2bfcd53e (diff)
parent0749ad02d0b8429e2a3a50158994268c0b0af044 (diff)
downloadrust-9b77a6a20021cb8783111c04e9260963f15b550e.tar.gz
rust-9b77a6a20021cb8783111c04e9260963f15b550e.zip
Auto merge of #77145 - pietroalbini:refactor-build-manifest-versions, r=Mark-Simulacrum
Refactor versions detection in build-manifest

This PR refactors how `build-manifest` handles versions, making the following changes:

* `build-manifest` now detects the "package releases" on its own, without relying on rustbuild providing them through CLI arguments. This drastically simplifies calling the tool outside of `x.py`, and will allow to ship the prebuilt tool in a tarball in the future, with the goal of stopping to invoke `x.py` during `promote-release`.
* The `tar` command is not used to extract the version and the git hash from tarballs anymore. The `flate2` and `tar` crates are used instead. This makes detecting those pieces of data way faster, as the archive is decompressed just once and we stop parsing the archive once all the information is retrieved.
* The code to extract the version and the git hash now stores all the collected data dynamically, without requiring to add new fields to the `Builder` struct every time.

I tested the changes locally and it should behave the same as before.

r? `@Mark-Simulacrum`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions