about summary refs log tree commit diff
path: root/src/bootstrap
AgeCommit message (Collapse)AuthorLines
2023-12-30Simplify bootstrap check-cfg argumentsUrgau-10/+15
2023-12-30apply bootstrap lock unconditionallyonur-ozkan-32/+23
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-12-30bootstrap: bump fd-lockonur-ozkan-37/+34
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-12-30bootstrap: Move -Clto= setting from Rustc::run to rustc_cargoXi Ruoyao-28/+28
It prevents a full rebuild of stage 1 compiler when issuing "x.py test" with rust.lto != thin-local in config.toml.
2023-12-29Auto merge of #119373 - Kobzol:missing-tools-bootstrap, r=onur-ozkanbors-130/+98
Remove usage of deprecated `missing-tools` bootstrap flag This PR removes the usage of `--enable-missing-tools` in CI, as this config option is no longer used. It also removes `dist.missing-tools` config completely. Let me know which commits should I remove (if any). Fixes: https://github.com/rust-lang/rust/issues/79249 r? `@onur-ozkan`
2023-12-29don't return suggestion message if no changes detectedonur-ozkan-15/+17
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-12-28Remove `is_optional_tool` from `ToolBuild`Jakub Beránek-128/+92
2023-12-28Add change tracker entryJakub Beránek-1/+6
2023-12-28Remove `--enable-missing-tools` from `configure.py`Jakub Beránek-1/+0
2023-12-28utilize the unused `llvm-tools` optiononur-ozkan-8/+10
This field was not functioning as described in its comment in `config.example.toml`. Also, updated the default value to `true` to keep the bootstrapping behavior as it was before. Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-12-25Update sysinfo version to 0.30.1Guillaume Gomez-3/+3
2023-12-25bootstrap: use same make flags with rustdoconur-ozkan-5/+0
Keeping same `MAKEFLAGS` and `MFLAGS` for rustdoc should allow rustdoc to use the same jobserver. Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-12-22bootstrap: build doc for `cargo-util-schemasWeihang Lo-0/+1
2023-12-21Rollup merge of #119182 - GuillaumeGomez:update-sysinfo, r=onur-ozkanMatthias Krüger-7/+7
Update sysinfo version to 0.30.0 Following last `sysinfo` update. Nothing much needs to be changed here apparently. r? `@onur-ozkan`
2023-12-21Rollup merge of #119124 - onur-ozkan:help-118861, r=Mark-SimulacrumMatthias Krüger-5/+27
don't build `rust-analyzer-proc-macro-srv` on def config Should be very easy to understand when reviewing commit-by-commit. Blocker for #118861
2023-12-21add a new change in change-trackeronur-ozkan-0/+5
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-12-21Update sysinfo version to 0.30.0Guillaume Gomez-7/+7
2023-12-19implement remapper for build pathsonur-ozkan-0/+14
In config.toml we use `rust-analyzer-proc-macro-srv` for building `rust-analyzer-proc-macro-srv`, however, when we attempt to build it from the terminal, this cannot be used because we need to use the actual path, which is `proc-macro-srv-cli`. Remapping should end this confusion with improving the development experience. Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-12-19don't build `rust-analyzer-proc-macro-srv` on def configonur-ozkan-5/+8
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-12-18Auto merge of #118946 - onur-ozkan:fix-clean, r=clubby789bors-2/+8
fix `x clean` for cross-compiled artifacts ```toml build = "x86_64-unknown-linux-gnu" host = ["arm-unknown-linux-gnueabihf"] target = ["arm-unknown-linux-gnueabihf"] ``` On `x86_64-unknown-linux-gnu`, after cross-compiling with the sample configuration above, artifacts under `build/x86_64-unknown-linux-gnu` never gets cleaned with `x clean`. This PR fixes that.
2023-12-17Auto merge of #119020 - onur-ozkan:remove-hex, r=albertlarsan68bors-29/+79
remove `hex` dependency in bootstrap First commit removes the `hex` dependency, as we can achieve the same output with the added function, which is very small and simple. Second commit creates a test module for the helpers util and adds unit tests for multiple helper functions, including `hex_encode`.
2023-12-17expand helpers tests with new test module `tests/helpers`onur-ozkan-16/+63
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-12-16make x.py clippy download and use beta clippyasquared31415-88/+124
2023-12-16use RUSTC_WRAPPER instead of RUSTCjyn-15/+68
2023-12-16give a better error if renaming a temp file failsjyn-1/+8
2023-12-16create helper fn `hex_encode` and remove `hex` dependencyonur-ozkan-13/+16
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-12-16fix printing cargo args on --dry-runjyn-7/+9
2023-12-15Auto merge of #118936 - nikic:update-llvm-18, r=cuviperbors-21/+21
Update to LLVM 17.0.6 This is a rebase on the final LLVM 17 release. Includes the RISCV fix requested in https://github.com/rust-lang/llvm-project/pull/157 (and I think this is also the only change in this release that is relevant to rustc). r? `@cuviper` Fixes #117902
2023-12-14fix `x clean` for cross-compiled artifactsonur-ozkan-2/+8
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-12-14Fix bootstrap test failuresNikita Popov-21/+21
There are a number of fixes here: * if-unchanged is supposed to be the default for channel=dev, but actually used different logic. Make sure it is the same. * If no llvm section was specified at all, different logic was also used. Go through the standard helper. * Some more assertions should depend on if_unchanged.
2023-12-14Auto merge of #118789 - jyn514:dry-run, r=onur-ozkanbors-2/+2
fix --dry-run when the change-id warning is printed previously: ``` Building bootstrap Compiling bootstrap v0.0.0 (/home/jyn/src/rust2/src/bootstrap) Finished dev [unoptimized] target(s) in 4.23s thread 'main' panicked at src/bin/main.rs:147:17: fs::write(warned_id_path, latest_change_id.to_string()) failed with No such file or directory (os error 2) ```
2023-12-13Auto merge of #118919 - matthiaskrgr:rollup-02udckl, r=matthiaskrgrbors-20/+20
Rollup of 4 pull requests Successful merges: - #118759 (Support bare unit structs in destructuring assignments) - #118871 (Coroutine variant fields can be uninitialized) - #118883 (Change a typo mistake in the-doc-attribute.md) - #118906 (Fix LLD thread flags in bootstrap on Windows) r? `@ghost` `@rustbot` modify labels: rollup
2023-12-13Fix LLD thread flag selection for Windows targetsJakub Beránek-1/+1
2023-12-13Add `TargetSelection::is_windows` methodJakub Beránek-19/+19
2023-12-12Unbreak non-unix non-windows bootstrapDavid Tolnay-1/+0
2023-12-12Auto merge of #118817 - lnicola:sync-from-ra, r=lnicolabors-0/+2
Subtree update of `rust-analyzer` r? `@ghost`
2023-12-12Add rust_analyzer to EXTRA_CHECK_CFGSLaurențiu Nicola-0/+2
2023-12-11sort dump files at the end of bootstraponur-ozkan-2/+29
To ensure deterministic results we must sort the dump lines. This is necessary because the order of rustc invocations different almost all the time. Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-12-11update auto completionsonur-ozkan-2/+2
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-12-11Dump command invocations from bootstrap shimsonur-ozkan-9/+69
When making changes to the bootstrap that shouldn't change its behavior, this feature will help developers perform comparisons to check whether the bootstrap behavior has changed or not. This can also be used for different purposes. For example, allowing CI to dump the shims and upload them so that developers can download them and compare with their local dump to see if CI affects the bootstrap unexpectedly. Or, make CI perform comparisons on specific bootstrap tests to check for behavior changes between the master and PR branches. Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-12-10Revert "Use MCP510"Jakub Beránek-11/+3
This reverts commit 40c3d351ada5d991f7474ecc4bc6c9b976c656cb. The option was dogfooded for using lld with MCP510 , but it broke testing with LLD, because we don't pass `-Zunstable-options` on enough places.
2023-12-10Add ChangeInfo recordJakub Beránek-0/+5
2023-12-10Remove unused run_dsymutil and gpg_password_file config valuesJakub Beránek-4/+0
2023-12-10Destructure TOML configsJakub Beránek-168/+299
This will allow us to check if all values are used
2023-12-10Review fixesJakub Beránek-21/+21
2023-12-10Produce an explicit error when using a self-contained lld, but we don't add ↵Jakub Beránek-0/+10
it to sysroot
2023-12-10Add change tracker entryJakub Beránek-0/+5
2023-12-10Do not invoke external lld to figure out thread flags in self-contained modeJakub Beránek-8/+23
2023-12-10Use MCP510Jakub Beránek-2/+11
2023-12-10Introduce `LldMode` and generalize parsing of `use-lld`Jakub Beránek-12/+99