about summary refs log tree commit diff
path: root/src/bootstrap
AgeCommit message (Collapse)AuthorLines
2025-07-05migrate cargo streaming to new bootstrap command streaming API'sbit-aloo-14/+11
2025-07-05add streaming command struct for (spawn + piping scenario)bit-aloo-10/+64
2025-07-04Unify completion list between `x test tidy` and `x run generate-completions`Jakub Beránek-32/+36
2025-07-04Rollup merge of #143288 - ehuss:fix-clean-fifo, r=KobzolJacob Pratt-1/+1
Fix `x clean` with a fifo `x clean` was failing when it encountered a special file like a fifo because it thought it was a directory.
2025-07-03fix: allow emccJayden Qi-1/+2
2025-07-03Auto merge of #142857 - rust-lang:cargo_update, r=clubby789bors-1/+0
Weekly `cargo update` Automation to keep dependencies in `Cargo.lock` current. The following is the output from `cargo update`: ```txt compiler & tools dependencies: Locking 23 packages to latest compatible versions Updating anstyle-svg v0.1.8 -> v0.1.9 Updating autocfg v1.4.0 -> v1.5.0 Updating bumpalo v3.18.1 -> v3.19.0 Updating derive-where v1.4.0 -> v1.5.0 Updating errno v0.3.12 -> v0.3.13 Updating indexmap v2.9.0 -> v2.10.0 Updating libredox v0.1.3 -> v0.1.4 Updating owo-colors v4.2.1 -> v4.2.2 Updating pest v2.8.0 -> v2.8.1 Updating pest_derive v2.8.0 -> v2.8.1 Updating pest_generator v2.8.0 -> v2.8.1 Updating pest_meta v2.8.0 -> v2.8.1 Updating r-efi v5.2.0 -> v5.3.0 Updating rustc-build-sysroot v0.5.8 -> v0.5.9 Updating slab v0.4.9 -> v0.4.10 Updating syn v2.0.103 -> v2.0.104 Adding toml v0.8.23 Adding toml_edit v0.22.27 Adding toml_write v0.1.2 Updating tracing-attributes v0.1.29 -> v0.1.30 Updating xattr v1.5.0 -> v1.5.1 Updating zerocopy v0.8.25 -> v0.8.26 Updating zerocopy-derive v0.8.25 -> v0.8.26 note: pass `--verbose` to see 39 unchanged dependencies behind latest library dependencies: Locking 0 packages to latest compatible versions note: pass `--verbose` to see 3 unchanged dependencies behind latest rustbook dependencies: Locking 21 packages to latest compatible versions Updating autocfg v1.4.0 -> v1.5.0 Updating bumpalo v3.18.1 -> v3.19.0 Updating errno v0.3.12 -> v0.3.13 Updating indexmap v2.9.0 -> v2.10.0 Updating markup5ever v0.16.1 -> v0.16.2 Updating pest v2.8.0 -> v2.8.1 Updating pest_derive v2.8.0 -> v2.8.1 Updating pest_generator v2.8.0 -> v2.8.1 Updating pest_meta v2.8.0 -> v2.8.1 Updating r-efi v5.2.0 -> v5.3.0 Updating syn v2.0.103 -> v2.0.104 Adding windows-sys v0.60.2 Adding windows-targets v0.53.2 Adding windows_aarch64_gnullvm v0.53.0 Adding windows_aarch64_msvc v0.53.0 Adding windows_i686_gnu v0.53.0 Adding windows_i686_gnullvm v0.53.0 Adding windows_i686_msvc v0.53.0 Adding windows_x86_64_gnu v0.53.0 Adding windows_x86_64_gnullvm v0.53.0 Adding windows_x86_64_msvc v0.53.0 ```
2025-07-03cargo updategithub-actions-1/+0
compiler & tools dependencies: Locking 23 packages to latest compatible versions Updating anstyle-svg v0.1.8 -> v0.1.9 Updating autocfg v1.4.0 -> v1.5.0 Updating bumpalo v3.18.1 -> v3.19.0 Updating derive-where v1.4.0 -> v1.5.0 Updating errno v0.3.12 -> v0.3.13 Updating indexmap v2.9.0 -> v2.10.0 Updating libredox v0.1.3 -> v0.1.4 Updating owo-colors v4.2.1 -> v4.2.2 Updating pest v2.8.0 -> v2.8.1 Updating pest_derive v2.8.0 -> v2.8.1 Updating pest_generator v2.8.0 -> v2.8.1 Updating pest_meta v2.8.0 -> v2.8.1 Updating r-efi v5.2.0 -> v5.3.0 Updating rustc-build-sysroot v0.5.8 -> v0.5.9 Updating slab v0.4.9 -> v0.4.10 Updating syn v2.0.103 -> v2.0.104 Adding toml v0.8.23 Adding toml_edit v0.22.27 Adding toml_write v0.1.2 Updating tracing-attributes v0.1.29 -> v0.1.30 Updating xattr v1.5.0 -> v1.5.1 Updating zerocopy v0.8.25 -> v0.8.26 Updating zerocopy-derive v0.8.25 -> v0.8.26 note: pass `--verbose` to see 39 unchanged dependencies behind latest library dependencies: Locking 0 packages to latest compatible versions note: pass `--verbose` to see 3 unchanged dependencies behind latest rustbook dependencies: Locking 21 packages to latest compatible versions Updating autocfg v1.4.0 -> v1.5.0 Updating bumpalo v3.18.1 -> v3.19.0 Updating errno v0.3.12 -> v0.3.13 Updating indexmap v2.9.0 -> v2.10.0 Updating markup5ever v0.16.1 -> v0.16.2 Updating pest v2.8.0 -> v2.8.1 Updating pest_derive v2.8.0 -> v2.8.1 Updating pest_generator v2.8.0 -> v2.8.1 Updating pest_meta v2.8.0 -> v2.8.1 Updating r-efi v5.2.0 -> v5.3.0 Updating syn v2.0.103 -> v2.0.104 Adding windows-sys v0.60.2 Adding windows-targets v0.53.2 Adding windows_aarch64_gnullvm v0.53.0 Adding windows_aarch64_msvc v0.53.0 Adding windows_i686_gnu v0.53.0 Adding windows_i686_gnullvm v0.53.0 Adding windows_i686_msvc v0.53.0 Adding windows_x86_64_gnu v0.53.0 Adding windows_x86_64_gnullvm v0.53.0 Adding windows_x86_64_msvc v0.53.0
2025-07-03Rollup merge of #134006 - klensy:typos, r=nnethercoteJana Dönszelmann-4/+4
setup typos check in CI This allows to check typos in CI, currently for compiler only (to reduce commit size with fixes). With current setup, exclude list is quite short, so it worth trying? Also includes commits with actual typo fixes. MCP: https://github.com/rust-lang/compiler-team/issues/817 typos check currently turned for: * ./compiler * ./library * ./src/bootstrap * ./src/librustdoc After merging, PRs which enables checks for other crates (tools) can be implemented too. Found typos will **not break** other jobs immediately: (tests, building compiler for perf run). Job will be marked as red on completion in ~ 20 secs, so you will not forget to fix it whenever you want, before merging pr. Check typos: `python x.py test tidy --extra-checks=spellcheck` Apply typo fixes: `python x.py test tidy --extra-checks=spellcheck:fix` (in case if there only 1 suggestion of each typo) Current fail in this pr is expected and shows how typo errors emitted. Commit with error will be removed after r+.
2025-07-03setup CI and tidy to use typos for spellchecking and fix few typosklensy-4/+4
2025-07-03Rollup merge of #143325 - Kobzol:bootstrap-interner, r=clubby789Matthias Krüger-4/+7
Use non-global interner in `test_string_interning` in bootstrap Just a small cleanup that we found on our GSoC call. CC `@Shourya742`
2025-07-03Rollup merge of #143316 - Kobzol:bootstrap-check-tests, r=jieyouxuMatthias Krüger-63/+373
Add bootstrap check snapshot tests Split off from https://github.com/rust-lang/rust/pull/143048, so that we get a baseline of how check behaved before we make changes to it. Note that the output of the check snapshot tests is suboptimal in many places, as we're missing information about stages and the build compiler. That will be changed in https://github.com/rust-lang/rust/pull/143048. r? `@jieyouxu`
2025-07-03Rollup merge of #143251 - lolbinarycat:bootstrap-toml-tidy-extra-checks, ↵Matthias Krüger-2/+13
r=Kobzol bootstrap: add build.tidy-extra-checks option split off from rust-lang/rust#142924 r? `@Kobzol`
2025-07-02Rollup merge of #142212 - GrigorenkoPV:codegens, r=KobzolMatthias Krüger-36/+29
bootstrap: validate `rust.codegen-backends` & `target.<triple>.codegen-backends` As per https://github.com/rust-lang/rust/issues/142184#issuecomment-2954124009. Closes rust-lang/rust#142184.
2025-07-02bootstrap: add CONFIG_CHANGE_HISTORY entry for build.tidy-extra-checksbinarycat-0/+5
2025-07-02bootstrap: add build.tidy-extra-checks optionbinarycat-2/+8
2025-07-02bootstrap: `validate rust.codegen-backends` & `targer.<triple>.codegen-backends`Pavel Grigorenko-36/+29
2025-07-02Use non-global interner in `test_string_interning` in bootstrapJakub Beránek-4/+7
2025-07-02Apply review commentsJakub Beránek-2/+3
2025-07-02Add cross-compilation check testsJakub Beránek-0/+47
2025-07-02Add bootstrap tool check testJakub Beránek-0/+14
2025-07-02Add Rust Analyzer check testsJakub Beránek-0/+18
2025-07-02Add codegen check testsJakub Beránek-0/+25
2025-07-02Add compiletest check testsJakub Beránek-4/+30
2025-07-02Add snapshot tests for checking compiler, library and rustc toolsJakub Beránek-1/+182
2025-07-02Automatically derive stage in step metadata where possibleJakub Beránek-62/+60
2025-07-02Auto merge of #142974 - cuviper:stage0-bump, r=Mark-Simulacrumbors-2/+0
Update stage0 to 1.89.0-beta.1 - Update version placeholders - Update stage0 to 1.89.0-beta.1 - Update `STAGE0_MISSING_TARGETS` - Update `cfg(bootstrap)` r? `@Mark-Simulacrum` try-job: dist-i586-gnu-i586-i686-musl
2025-07-01fix: error messageJayden Qi-3/+8
2025-07-01Update `STAGE0_MISSING_TARGETS`Josh Stone-2/+0
2025-07-01Fix `x clean` with a fifoEric Huss-1/+1
`x clean` was failing when it encountered a special file like a fifo because it thought it was a directory.
2025-07-01Rollup merge of #143269 - tshepang:patch-1, r=KobzolGuillaume Gomez-2/+2
bootstrap: make comment more clear Reading that at first made me think the code block ensures that the said artefacts are created
2025-07-01bootstrap: make comment more clearTshepang Mbambo-2/+2
Reading that at first made me think the code block ensures that the said artefacts are created
2025-07-01Do not enable LLD by default in the dist profileJakub Beránek-1/+5
2025-06-30fix: install correct cc for wasm32-unknown-emscriptenJayden Qi-1/+1
Also fixed a typo in the sanity check for bootstrap, as we are checking for clang-likeness in every wasm target.
2025-06-30fix: wasm-bare targets compiling x86 builtinsJayden Qi-0/+11
Added sanity check to bootstrap to hard error on wasm builds without clang, and changed distribution image `dist-various-2` to use clang to build for official targets.
2025-06-30Rollup merge of #143180 - jieyouxu:forest, r=KobzolMatthias Krüger-28/+49
Use `tracing-forest` instead of `tracing-tree` for bootstrap tracing I find the `tracing-forest` output easier to comprehend. Note that this is not a strict improvement -- `tracing-forest` output contains some emojis and redundant log levels, but customizing it seems to be... non-trivial. Despite this, I still find `tracing-forest` easier to follow than `tracing-tree`, even when I tried to tune `tracing-tree` output. ### Preview ```bash BOOTSTRAP_TRACING=debug ./x test library/std --dry-run ``` With `tracing-forest` (this PR), it looks like ![Screenshot 2025-06-29 174802](https://github.com/user-attachments/assets/1ab9150f-48f8-4fb3-b004-27bcf8bbc0f5) With `tracing-tree` (before this PR), it looked like ![Screenshot 2025-06-29 175227](https://github.com/user-attachments/assets/659e254d-15ab-47dd-af11-98e2331d4d7a) r? `@Kobzol`
2025-06-30Add change tracker entryJakub Beránek-0/+5
2025-06-29Use `tracing-forest` instead of `tracing-tree` for bootstrap tracingJieyou Xu-28/+49
I find the `tracing-forest` output easier to comprehend.
2025-06-29Make combining LLD with external LLVM config a hard errorJakub Beránek-4/+2
2025-06-27Auto merge of #143064 - flip1995:clippy-subtree-update, r=GuillaumeGomezbors-1/+3
Clippy subtree update r? `@Manishearth` Cargo.lock update due to version bump
2025-06-27Use `.is_multiple_of()` in bootstrapSamuel Tardieu-1/+3
This makes the intent clear, and silences Clippy.
2025-06-27disable caching for cargo commandsbit-aloo-3/+6
2025-06-27move execution context inside exec and prune execution context, use command ↵bit-aloo-353/+345
directly from bootstrap command inside start, and not via as_command_mut
2025-06-27make DeferredCommand a must use and move mark_as_executed inside finish processbit-aloo-1/+4
2025-06-27add caching info on bootstrap commandbit-aloo-6/+4
2025-06-27refactor deferred command and make it compatible with new commandstate, ↵bit-aloo-90/+100
remove extra caching logic from run and re-structure the changes
2025-06-27add new command state in execution contextbit-aloo-0/+11
2025-06-27add do_not_cache method and update the warning on as_command_mutbit-aloo-3/+9
2025-06-27use metadata for command cache key spawning directly from commandbit-aloo-20/+25
2025-06-27add command cache key, move to osstring, add should cache to bootstrap commandbit-aloo-19/+76
2025-06-27add caching fields inside Bootstrap commandbit-aloo-1/+26