about summary refs log tree commit diff
path: root/src/bootstrap
AgeCommit message (Collapse)AuthorLines
2025-08-01Make `Cargo` a `ToolTarget` toolJakub Beránek-12/+4
2025-08-01Add basic Cargo snapshot testJakub Beránek-0/+15
2025-08-01Appease ClippyJakub Beránek-1/+0
2025-08-01Rename `link_compiler` to `target_compiler`Jakub Beránek-27/+30
2025-08-01Port codegen backends to `RustcPrivateCompilers`Jakub Beránek-61/+45
2025-08-01Add step metadata and a simple test for codegen backendsJakub Beránek-0/+27
2025-08-01Fix `ToolRustc` build with `download-rustc`Jakub Beránek-1/+7
2025-08-01Refactor `Rustdoc`Jakub Beránek-96/+90
2025-08-01Add step metadata and a few tests for `Doc` stepsJakub Beránek-0/+103
2025-08-01Implement `RustcPrivateCompilers` to unify building of `rustc_private` toolsJakub Beránek-269/+287
2025-08-01Rename `Builder::rustdoc` to `Builder::rustdoc_for_compiler`Jakub Beránek-24/+32
To clarify what it does.
2025-08-01Add step metadata to `RustAnalyzerProcMacroSrv`Jakub Beránek-0/+10
2025-08-01Cleanup `ensure_if_default` to not require `Option` outputJakub Beránek-7/+8
2025-08-01Add metadata to `Cargo` and `RustAnalyzer` toolsJakub Beránek-0/+20
2025-08-01Rename extended rustc tool macrosJakub Beránek-17/+19
2025-08-01Properly pass path to staged `rustc` to `compiletest` self-testsJieyou Xu-0/+6
Otherwise, this can do weird things like use a global rustc, or try to use stage 0 rustc. This must be properly configured, because `compiletest` is intended to only support one compiler target spec JSON format (of the in-tree compiler).
2025-08-01Auto merge of #144773 - RalfJung:rollup-uif2yyj, r=RalfJungbors-79/+143
Rollup of 6 pull requests Successful merges: - rust-lang/rust#144397 (`tests/ui/issues/`: The Issues Strike Back [2/N]) - rust-lang/rust#144410 (Make tier 3 musl targets link dynamically by default) - rust-lang/rust#144708 (Add tracing to step.rs and friends) - rust-lang/rust#144730 (Create a typed wrapper for codegen backends in bootstrap) - rust-lang/rust#144771 (Remove some noisy triagebot pings for myself) - rust-lang/rust#144772 (add unsupported_calling_conventions to lint list) r? `@ghost` `@rustbot` modify labels: rollup
2025-08-01Rollup merge of #144683 - tgross35:builtins-via-std-workspace, ↵Jacob Pratt-11/+11
r=bjorn3,Noratrieb Simplify library dependencies on `compiler-builtins` The three panic-related library crates need to have access to `core`, and `compiler-builtins` needs to be in the crate graph. Rather than specifying both dependencies, switch these crates to use `rustc-std-workspace-core` which already does this. This means there is now a single place that the `compiler-builtins` dependency needs to get configured, for everything other than `alloc` and `std`. The second commit removes `compiler-builtins` from `std` (more details in the message).
2025-07-31Use `core` via `rustc-std-workspace-core` in `library/panic*`Trevor Gross-11/+11
The three panic-related library crates need to have access to `core`, and `compiler-builtins` needs to be in the crate graph. Rather than specifying both dependencies, switch these crates to use `rustc-std-workspace-core` which already does this. This means there is now a single place that the `compiler-builtins` dependency needs to get configured, for everything other than `alloc` and `std`.
2025-07-31Create a typed wrapper for codegen backendsJakub Beránek-79/+143
To avoid representing them just with strings.
2025-07-30Address some rustc inconsistency issuesHaowei Wu-5/+13
We noticed when building rustc multiple time in a roll, some files will not be consistent across the build despite the fact that they are built from same source under the same environment. This patch addresses the inconsistency issue we found on libunwind.a by sorting the order of the files passed to the linker.
2025-07-30Add change tracker entryJieyou Xu-0/+5
2025-07-30Deny `compiletest` self-tests being run against stage 0 rustc unless ↵Jieyou Xu-1/+18
explicitly allowed Otherwise, `compiletest` would have to know e.g. how to parse two different target spec, if target spec format was changed between beta `rustc` and in-tree `rustc`.
2025-07-30Introduce proper `build.compiletest-allow-stage0` config optionJieyou Xu-6/+19
In favor of the adhoc `COMPILETEST_FORCE_STAGE0` env var.
2025-07-30bootstrap: split runtime DLL part out of `make_win_dist`Mateusz Mikuła-39/+35
2025-07-30bootstrap: extract `cc` query into a new functionMateusz Mikuła-20/+29
2025-07-29Rollup merge of #144623 - RalfJung:miri, r=RalfJungStuart Cook-0/+5
miri subtree update Subtree update of `miri` to https://github.com/rust-lang/miri/commit/fc4d9a2720d38f815d3e20627b805b4a379e5c8b. Created using https://github.com/rust-lang/josh-sync. r? `@ghost`
2025-07-29Rollup merge of #144599 - ↵Stuart Cook-0/+2
lolbinarycat:bootstrap-build.tidy-extra-checks-enable-for-tools, r=Kobzol bootstrap: enable tidy auto extra checks on tools profile alternative to https://github.com/rust-lang/rust/pull/144461 this won't affect CI or any `./configure` based workflows, and will also not affect every rust contributor like that PR will. a slower rollout of this feature should reduce disruption if issues are discovered with it. r? ``@Kobzol``
2025-07-29Rollup merge of #144482 - ↵Stuart Cook-479/+657
Shourya742:2025-07-24-have-explicit-download-methods, r=Kobzol Add explicit download methods to download module in bootstrap This PR attempts to decouple the default initialization of the config object from parse_inner. It moves specific download methods, previously used during the initial config setup, into standalone functions outside the config implementation. r? ``@Kobzol``
2025-07-29update lockfile and bless tidyRalf Jung-0/+5
2025-07-28bootstrap: enable tidy auto extra checks on tools profilebinarycat-0/+2
2025-07-28make sure to populate DownloadState dependencies before its initialization ↵bit-aloo-5/+5
in config parsing
2025-07-28remove config wrappers of download_toolchain and maybe_download_fmt and ↵bit-aloo-17/+13
during config parsing directly invoke cdownload methods
2025-07-28use dry_run and verbose directly from exec_ctxbit-aloo-30/+27
2025-07-28add support for ./x check src/tools/linkcheckerPietro Albini-0/+7
2025-07-27move download_rustfmt out of impl as its used during config initializationbit-aloo-0/+66
2025-07-27move download_beta_toolchain out of impl as its used during config ↵bit-aloo-0/+25
initialization
2025-07-27move utility methods out of config implbit-aloo-461/+518
2025-07-27add download contextbit-aloo-0/+37
2025-07-26Rollup merge of #144470 - tgross35:clif-remove-no-f16-f128, r=bjorn3Jacob Pratt-5/+0
clif: Don't set the `compiler-builtins-no-f16-f128` feature Since rust-lang/rust be35d37d8b6c ("Use the compiler to determine whether or not to enable f16 and f128"), `compiler-builtins` relies on `rustc` to report whether or not `f16` and `f128` are supported, which is reported by the backend. This means that there should no longer be any need to unconditionally disable the types for clif in Bootstrap. Backend config: https://github.com/rust-lang/rust/blob/a955f1cd09a027363729ceed919952d09f76f28e/compiler/rustc_codegen_cranelift/src/lib.rs#L224-L233
2025-07-26Rollup merge of #144464 - Kobzol:x-test-default, r=jieyouxuJacob Pratt-1/+5
Only run bootstrap tests in `x test` on CI Discussed at https://rust-lang.zulipchat.com/#narrow/channel/122652-new-members/topic/Linux.20Distribution/with/530839642. The bootstrap tests can be sensitive of the environment where they are executed. And now that they are executed very early in the test pipeline, it can be annoying for people who just try to do `x test` when it fails on bootstrap tests. We could move the bootstrap tests back to the end of the `x test` pipeline, but then it would just fail later. I'd prefer to only run them on CI by default. Fixes: https://github.com/rust-lang/rust/issues/143973
2025-07-26Rollup merge of #144445 - jieyouxu:revert-shared_helpers_tests, r=KobzolJacob Pratt-11/+22
Fix `./x check bootstrap` (again) Redoes rust-lang/rust#134883 and reverts 40c2ca96411caaeab1563ff9041879f742d1d71b from rust-lang/rust#142416. Unfortunately I missed this during review. - Commit 1: Reverts 40c2ca96411caaeab1563ff9041879f742d1d71b and re-applies rust-lang/rust#134883. - Commit 2: Check `./x check bootstrap` in `pr-check-1` to catch "obvious" problems like this. r? Kobzol
2025-07-26Rollup merge of #144463 - ognevny:change-tracker-typo, r=KobzolMatthias Krüger-1/+1
change_tracker: fix a typo there is no `llvm.lld` option r? `@Kobzol`
2025-07-26Rollup merge of #144316 - Gelbpunkt:musl-libdir-bootstrap, r=KobzolTrevor Gross-14/+18
bootstrap: Move musl-root fallback out of sanity check Previously, the musl root would only be set to the fallback `/usr` by the sanity check, which isn't ran for the bootstrap tests. r? ``````@Kobzol``````
2025-07-25clif: Don't set the `compiler-builtins-no-f16-f128` featureTrevor Gross-5/+0
Since rust-lang/rust be35d37d8b6c ("Use the compiler to determine whether or not to enable f16 and f128"), `compiler-builtins` relies on `rustc` to report whether or not `f16` and `f128` are supported, which is reported by the backend. This means that there should no longer be any need to unconditionally disable the types for clif in Bootstrap. Backend config: https://github.com/rust-lang/rust/blob/a955f1cd09a027363729ceed919952d09f76f28e/compiler/rustc_codegen_cranelift/src/lib.rs#L224-L233
2025-07-25Only run bootstrap tests in `x test` on CIJakub Beránek-1/+5
2025-07-25change_tracker: fix a typoMaksim Bondarenkov-1/+1
there is no `llvm.lld` option
2025-07-25Allow approx-constant in `x clippy library`Philipp Krones-0/+1
2025-07-25Revert "Move `shared_helpers` test to a dedicated module"Jieyou Xu-11/+22
I missed this during review. We cannot declare a `tests` module within `shared_helpers.rs` itself, as shim binaries that tries to include the `shared_helpers` module through `#[path = ".."]` attributes would fail to find it, breaking `./x check bootstrap`. This reverts commit `40c2ca96411caaeab1563ff9041879f742d1d71b`.
2025-07-24Rollup merge of #144317 - lolbinarycat:tidy-obey-build.npm, r=KobzolLeón Orell Valerian Liehr-0/+6
pass build.npm from bootstrap to tidy and use it for npm install followup to rust-lang/rust#142924 r? ```@Kobzol```