about summary refs log tree commit diff
path: root/src/bootstrap
AgeCommit message (Collapse)AuthorLines
2025-01-13bootstrap: add `tracing` and `tracing-tree` based tracing setup许杰友 Jieyou Xu (Joe)-1/+36
2025-01-13bootstrap: add optional `tracing` cargo feature and optional `tracing*` deps许杰友 Jieyou Xu (Joe)-5/+197
2025-01-12Rollup merge of #135407 - joshtriplett:more-clippy, r=compiler-errorsGuillaume Gomez-2/+26
Deny various clippy lints Almost all of these clippy lints have zero occurrences. Two of them have one each, and this PR fixes those.
2025-01-12Auto merge of #135281 - onur-ozkan:build-stamps, r=jieyouxubors-361/+428
centralize build stamp logic This PR brings all the stamp file handling into one place inside `build_stamp` module, which takes care of everything related to build stamps. By doing this, we cut down on duplicated code and types and keep the codebase easier to maintain and more consistent. Main goals are: - Make stamp handling stricter so we don't have to pass `Path`s around and manually `join` on arbitrary directories - Keep all stamp-related logic in one place - Make it easier to test and debug - Avoid duplication - Keep things simple and well-documented Resolves #134962
2025-01-12Deny `clippy::four_forward_slashes` in library (no occurrences)Josh Triplett-0/+1
2025-01-12Deny `clippy::to_string_in_format_args` (no occurrences)Josh Triplett-0/+2
2025-01-12Deny `clippy::single_char_add_str` (no occurrences)Josh Triplett-0/+2
2025-01-12Deny `clippy::same_item_push` (no occurrences)Josh Triplett-0/+2
2025-01-12Deny `clippy::print_literal` (no occurrences)Josh Triplett-0/+2
2025-01-12Deny `clippy::needless_bool` and `clippy::needless_bool_assign` (no occurrences)Josh Triplett-0/+4
2025-01-12Deny `clippy::non_minimal_cfg` (no occurrences)Josh Triplett-0/+2
2025-01-12Deny `clippy::char_lit_as_u8` (no occurrences)Josh Triplett-1/+5
2025-01-12Deny `clippy:;four_forward_slashes` and fix the only occurrenceJosh Triplett-0/+1
2025-01-12Deny `clippy::format_in_format_args` and fix the only occurrenceJosh Triplett-1/+5
2025-01-12Rollup merge of #135375 - lolbinarycat:bootstrap-allow-stage0-rustdoc-js, ↵Matthias Krüger-1/+4
r=jieyouxu allow rustdoc-js tests to be run at stage0 this mirrors the behavior of rustdoc-js-std tests. previously this required COMPILETEST_FORCE_STAGE0.
2025-01-12update doc-comment of `BuildStamp::add_stamp`onur-ozkan-1/+3
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-01-12rename `done_stamp` to `lld_stamp`onur-ozkan-3/+3
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-01-12add change entry for renamingsonur-ozkan-0/+5
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-01-12avoid magical `AsRef<Path>` implementationonur-ozkan-29/+37
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-01-12refactor `with_stamp` as `add_stamp` for incrementalityonur-ozkan-14/+13
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-01-12extend sanitizers stamp calculationonur-ozkan-7/+13
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-01-12run git only inside the current directoryonur-ozkan-0/+2
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-01-12migrate lld build stamponur-ozkan-5/+5
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-01-12apply minor improvements on build_stamponur-ozkan-1/+4
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-01-12migrate `program_out_of_date` to `BuildStamp::is_up_to_date`onur-ozkan-46/+20
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-01-12add coverage for `BuildStamp::with_prefix`onur-ozkan-0/+16
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-01-12fix an invalid prefix usage on enzymeonur-ozkan-1/+1
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-01-12fix compiler errorsonur-ozkan-2/+2
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-01-12migrate `generate_smart_stamp_hash`onur-ozkan-55/+55
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-01-12add test coverage for `build_stamp` implementationonur-ozkan-0/+47
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-01-12document `build_stamp` implementationonur-ozkan-6/+18
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-01-12migrate `Builder::clear_if_dirty`onur-ozkan-30/+29
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-01-12migrate helper stamp functionsonur-ozkan-141/+79
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-01-12migrate `HashStamp` to `BuildStamp`onur-ozkan-66/+29
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-01-12use `BuildStamp` instead of std paths and stringsonur-ozkan-69/+86
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-01-12implement `BuildStamp` that is stricter impl for build stampsonur-ozkan-2/+78
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-01-11don't use a string constantbinarycat-6/+5
2025-01-11clean up code related to the rustdoc-js test suitebinarycat-6/+7
2025-01-11allow rustdoc-js tests to be run at stage0binarycat-1/+4
this mirrors the behavior of rustdoc-js-std tests. previously this required COMPILETEST_FORCE_STAGE0.
2025-01-11ci: added ci format to test_renderRoss Sullivan-3/+49
2025-01-11Rollup merge of #135326 - onur-ozkan:target-specific-compiler-builtins, ↵Jacob Pratt-2/+27
r=jieyouxu support target specific `optimized-compiler-builtins` Makes it possible to control `optimized-compiler-builtins` for per target. This was raised in the [zulip discussion](https://rust-lang.zulipchat.com/#narrow/channel/326414-t-infra.2Fbootstrap/topic/Building.20and.20packaging.20Rust.20with.20x86_64-unknown-uefi.20support/near/492765883) yesterday.
2025-01-11Rollup merge of #135301 - lolbinarycat:bootstrap-old-master-resurected, ↵Jacob Pratt-0/+3
r=onur-ozkan re-add a warning for old master branch, but with much simpler logic instead of calling into git or checking the modification time of files, simply print the warning if there is a very large number of "modified" files. also make the wording much softer, so false positives are less alarming. (warning was removed in https://github.com/rust-lang/rust/issues/134935)
2025-01-10never print the warning on CIbinarycat-1/+1
2025-01-10add change entry for `optimized-compiler-builtins`onur-ozkan-0/+5
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-01-10ensure `optimized_compiler_builtins` check for CI rustconur-ozkan-0/+3
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-01-10add coverage for target specific valueonur-ozkan-1/+8
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-01-10make `optimized-compiler-builtins` target configurableonur-ozkan-1/+11
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-01-09re-add a warning for old master branch, but with much simpler logicbinarycat-0/+3
instead of calling into git or checking the modification time of files, simply print the warning if there is a very large number of "modified" files. also make the wording much softer, so false positives are less alarming.
2025-01-09bootstrap: `std::io::ErrorKind::CrossesDevices` is finally stablePavel Grigorenko-4/+1
2025-01-09Auto merge of #135268 - pietroalbini:pa-bump-stage0, r=Mark-Simulacrumbors-16/+9
Master bootstrap update Part of the release process. r? `@Mark-Simulacrum`