about summary refs log tree commit diff
path: root/src/bootstrap
AgeCommit message (Collapse)AuthorLines
2025-02-21update enzyme submodule and usersManuel Drehwald-5/+2
2025-02-21fix build regressionsManuel Drehwald-7/+17
2025-02-22bootstrap: pass `--src-root` and `--src-test-suite-root` instead of `--src-base`许杰友 Jieyou Xu (Joe)-1/+3
2025-02-21bootstrap: add doc for vendor build stepbit-aloo-0/+18
2025-02-21Add build step log for `run-make-support`Jakub Beránek-0/+8
I was always confused about what is being built, since nothing was printed in the log :)
2025-02-20Rollup merge of #137340 - Kobzol:bootstrap-dir-check, r=onur-ozkanJubilee-1/+12
Add a notice about missing GCC sources into source tarballs I didn't use `.gitkeep`, because that would be a hidden file that might not be noticed, whereas we want to let people inspecting the archive know why the sources are missing. Inspired by https://github.com/rust-lang/rust/issues/137332. r? `@onur-ozkan`
2025-02-20Rollup merge of #137338 - onur-ozkan:137332, r=KobzolJubilee-1/+5
skip submodule updating logics on tarballs Running submodule logic on tarballs isn't necessary since git isn't available there. Fixes #137332
2025-02-20Add a notice about missing GCC sources in source tarballsJakub Beránek-0/+11
2025-02-20skip submodule updating logics on tarballsonur-ozkan-1/+5
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-02-20Improve error message when a submodule directory is missing completelyJakub Beránek-1/+1
2025-02-19Rollup merge of #127793 - ChaiTRex:zed_support, r=KobzolMatthias Krüger-39/+65
Added project-specific Zed IDE settings This repository currently has project-specific VS Code IDE settings in `.vscode` and `compiler/rustc_codegen_cranelift/.vscode`. Now there are equivalent project-specific Zed IDE settings alongside those. This fixes `rust-analyzer` not being able to properly handle this project. Note that: 1. The contents of `src/tools/rust-analyzer/.vscode` could not be translated to Zed, as they aren't basic IDE settings. 2. One of the VS Code settings in `.vscode` has no corresponding setting in Zed, and so this has been noted like this: ```json "_settings_only_in_vs_code_not_yet_in_zed": { "git.detectSubmodulesLimit": 20 }, ```
2025-02-19print warning and help messagesonur-ozkan-0/+10
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-02-19add change-entry for tools profile updateonur-ozkan-0/+5
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-02-19set `build.test-stage = 2` for `tools` profileonur-ozkan-0/+2
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-02-18Rollup merge of #137191 - ehuss:update-mdbook, r=jieyouxuMatthias Krüger-15/+0
Update mdbook and move error_index_generator This moves error_index_generator to the rustbook workspace so that it can share the dependency with mdbook. I had forgotten that error_index_generator is using mdbook. This includes a corresponding update to mdbook which avoids a regression in error_index_generator. Closes https://github.com/rust-lang/rust/issues/137052
2025-02-18fix `clippy::len-zero`Josh Stone-1/+1
2025-02-18fix `clippy::doc-overindented-list-items`Josh Stone-4/+4
2025-02-18fix `clippy::double-ended-iterator-last`Josh Stone-1/+1
2025-02-18fix `clippy::unneeded-struct-pattern`Josh Stone-13/+13
2025-02-18update `STAGE0_MISSING_TARGETS`Josh Stone-4/+0
2025-02-18update `cfg(bootstrap)`Josh Stone-12/+3
2025-02-18fix rust-analyzer testsonur-ozkan-0/+1
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-02-18fix cargo testsonur-ozkan-1/+3
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-02-18add test coverage for `tool::get_tool_rustc_compiler`onur-ozkan-0/+30
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-02-18adapt tool module to `ToolBuildResult`onur-ozkan-179/+189
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-02-18document tool implementationsonur-ozkan-0/+18
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-02-18remove manually handled stage offsonur-ozkan-49/+24
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-02-18return `ToolBuildResult` to utilize them from callersonur-ozkan-85/+66
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-02-18migrate llvm-bitcode-linker to `ToolBuild`onur-ozkan-51/+27
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-02-18return more advanced type from `ToolBuild`onur-ozkan-98/+125
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-02-18bless testsonur-ozkan-1/+5
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-02-18pass target_compiler from Rustdoconur-ozkan-11/+2
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-02-18handle `ToolRustc` build stages automaticallyonur-ozkan-1/+22
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-02-17Move error_index_generator to the rustbook workspaceEric Huss-15/+0
I had forgotten that error_index_generator is using mdbook. This moves it to be part of the rustbook workspace so that it can share the dependency with rustbook.
2025-02-17Rollup merge of #137170 - ferrocene:pa-target-jemalloc, r=KobzolMatthias Krüger-3/+18
Allow configuring jemalloc per target In Ferrocene we're trying to switch from `./configure` to a predefined `config.toml` file. One of the limitations of doing that is the `rust.jemalloc` configuration option, which we need to conditionally disable based on the target. This PR adds a `target.$tuple.jemalloc` option to override `rust.jemalloc` to make that possible.
2025-02-17Rollup merge of #137073 - niklaskorz:bootstrap-doc-fix-empty-no-std, r=clubby789Matthias Krüger-0/+4
boostrap: skip no_std targets in Std doc step This fixes a bug that currently prevents us from adding no_std library targets to rustc in nixpkgs (https://github.com/NixOS/nixpkgs/pull/382166). When running `./x.py doc`, the `Std` doc step generally fails for no_std targets, logs: https://gist.github.com/niklaskorz/fb83f9503ce19b75e8b1af02cdebd592 Skipping no_std targets in this step will allow using no_std targets such as `bpfel-unknown-none` together with other targets in the same config without blocking the doc generator for them, e.g. ``` ./configure --release-channel=stable --tools=rustc,rustdoc,rust-analyzer-proc-macro-srv --build=aarch64-apple-darwin --host=aarch64-apple-darwin --target=aarch64-apple-darwin,bpfel-unknown-none ./x.py doc ``` Logs with this fix applied: https://gist.github.com/niklaskorz/cdd50aaea33ede579f737434286d800b
2025-02-17Rollup merge of #137020 - ferrocene:pa-vendor-sources, r=KobzolMatthias Krüger-28/+65
Pass vendored sources from bootstrap to generate-copyright In addition to doing the vendoring in bootstrap, this PR also loads the list of manifests to parse from bootstrap (instead of hardcoding a smaller list in generate-copyright). This is best reviewed commit-by-commit. Fixes https://github.com/rust-lang/rust/issues/136955
2025-02-17use the shared vendor impl for plan source tarballsPietro Albini-21/+17
2025-02-17Changed `.display()` to `.to_str()`Jakub Beránek-1/+1
2025-02-17allow configuring jemalloc per targetPietro Albini-3/+18
2025-02-17generate-copyright: pass the vendored sources from bootstrapPietro Albini-8/+33
2025-02-17Rollup merge of #137080 - jieyouxu:more-tracing, r=onur-ozkanMatthias Krüger-31/+332
bootstrap: add more tracing to compiler/std/llvm flows - Add more tracing to compiler/std/llvm flows. - Two drive-by nits: 1. Take `TargetSelection` by-value for `builder.is_builder_target()`. Noticed while adding tracing; follow-up to #136767. 2. Coalesce enzyme build logic into one branch. - Document `COMPILER{,_FOR}` tracing targets for #96176. - No functional changes. ### Testing You can play with the tracing locally with: ``` $ BOOTSTRAP_TRACING=bootstrap=debug ./x build library $ BOOTSTRAP_TRACING=bootstrap=trace ./x build library $ BOOTSTRAP_TRACING=bootstrap=trace,COMPILER=trace,COMPILER_FOR=trace ./x build library ``` ### Previews ``` $ BOOTSTRAP_TRACING=bootstrap=debug ./x build library ``` ![Screenshot 2025-02-15 230824](https://github.com/user-attachments/assets/c3b02b62-d52e-4c03-a00a-da0d95618989) ``` $ BOOTSTRAP_TRACING=bootstrap=trace,COMPILER=trace,COMPILER_FOR=trace ./x build library ``` ![Screenshot 2025-02-15 233859](https://github.com/user-attachments/assets/842e4ece-4c26-4191-acbb-5f93e42de4dc) r? ``@onur-ozkan`` (or reroll)
2025-02-16Rollup merge of #137119 - onur-ozkan:fix-broken-core, r=jieyouxuMatthias Krüger-9/+10
fix broken `x {doc, build} core` Fixes #137115
2025-02-16bootstrap: take `target` by value in `is_builder_target`许杰友 Jieyou Xu (Joe)-19/+19
2025-02-16bootstrap: add more tracing to compiler/std/llvm flows许杰友 Jieyou Xu (Joe)-13/+314
2025-02-16fix broken `x {doc, build} core`onur-ozkan-9/+10
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-02-16add unit test for cc-detectbit-aloo-0/+257
2025-02-16add docs to cc-detectbit-aloo-3/+28
2025-02-15Check all IDE config hashes in `./x test bootstrap`, update Helix hashChai T. Rex-12/+26
2025-02-15Add support for the Zed IDE to `./x setup`Chai T. Rex-1/+9