diff options
| author | Jakub Beránek <berykubik@gmail.com> | 2025-08-15 16:03:56 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-15 16:03:56 +0200 |
| commit | 87d677b7d0375c0c06255d23fc7d55e7e37521e0 (patch) | |
| tree | cd17ed76ed8a8cdd0ad1d178ce7c2522a4d48422 /src/ci/scripts/free-disk-space-windows-wait.py | |
| parent | a676c4891e14d30a5d28aba3edf72d54fb2103f7 (diff) | |
| parent | f2c2d3ebc329865a1a5c2f41420711c2b1032c45 (diff) | |
| download | rust-87d677b7d0375c0c06255d23fc7d55e7e37521e0.tar.gz rust-87d677b7d0375c0c06255d23fc7d55e7e37521e0.zip | |
Rollup merge of #145310 - Kobzol:compiler-for-revamp, r=jieyouxu
Reduce usage of `compiler_for` in bootstrap While working on refactoring/fixing `dist` steps, I realized that `build.full-bootstrap` does much more than it should, and that it its documentation is wrong. It seems that the main purpose of this option should be to enable/disable stdlib/compiler uplifting (https://rust-lang.zulipchat.com/#narrow/channel/326414-t-infra.2Fbootstrap/topic/Purpose.20of.20.60build.2Efull-bootstrap.60/with/533985624), but currently it also affects staging, or more precisely which compiler will be used to build selected steps, because this option is used in the cursed `compiler_for` function. I would like to change the option it so that it *only* affects uplifting, and doesn't affect stage selection, which I (partially) did in this PR. I removed the usage of `compiler_for` from the `Std` and `Rustc` steps, and explicitly implemented uplifting, without going through `compiler_for`. The only remaining usages of `compiler_for` are in dist steps (which I'm currently refactoring, will send a PR later) and test steps (which I will take a look at after dist). After that we can finally remove the function. I tried to document the case when uplifting was happening during cross-compilation, which was very implicit before. I also did a slight change in the uplifting logic for rustc when cross-compiling. Before, we would attempt to uplift a stage1 rustc, but that is not really a thing when cross-compiling. r? `@jieyouxu`
Diffstat (limited to 'src/ci/scripts/free-disk-space-windows-wait.py')
0 files changed, 0 insertions, 0 deletions
