about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-07-09 18:41:32 +0000
committerbors <bors@rust-lang.org>2023-07-09 18:41:32 +0000
commit1065d876cdbc34a872b9e17c78caaa59ea0c94d4 (patch)
tree5f83146adf5f6b76e64e0b8c24f83f56c25d4a5e /compiler/rustc_codegen_gcc
parenta9eba8d793696d75c51a87ca731983bf5967028f (diff)
parentbb8c497566e2ec14af0faca0cbad70c1bd090dbf (diff)
downloadrust-1065d876cdbc34a872b9e17c78caaa59ea0c94d4.tar.gz
rust-1065d876cdbc34a872b9e17c78caaa59ea0c94d4.zip
Auto merge of #113341 - Kobzol:stage0-sysroot, r=Mark-Simulacrum
Copy stage0 `rustc` binaries to `stage0-sysroot`

This is basically a revival of https://github.com/rust-lang/rust/pull/101711 and https://github.com/rust-lang/rust/pull/107956, with an added check that the full sysroot will only be created if the original rustc comes from `stage0/bin`.

What is/should be tested:

- [x] `rustup toolchain link stage0` (new libstd is used correctly)
- [x]  `python3 x.py fmt dist --stage 0`
- [x] Custom rustc/cargo in `config.toml` (in this case this logic is ignored)
- [x]  Perfbot (try perf run has succeeded)
- [x] Real use case (https://github.com/rust-lang/backtrace-rs/pull/542)

(Hopefully) fixes: https://github.com/rust-lang/rust/issues/101691

This is not the "end all, be all" solution to this problem, but as long as it resolves the basic use-case, and doesn't break perfbot, I say ship it. This code will probably be nuked anyway Soon™ because of the stage redesign.
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions