about summary refs log tree commit diff
path: root/src/bootstrap
AgeCommit message (Collapse)AuthorLines
2024-09-22Reformat using the new identifier sorting from rustfmtMichael Goulet-393/+307
2024-09-21Rollup merge of #130648 - onur-ozkan:enzyme-linking, r=KobzolJubilee-6/+4
move enzyme flags from general cargo to rustc-specific cargo Resolves #130637.
2024-09-21move enzyme flags from general cargo to rustc-specific cargoonur-ozkan-6/+4
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-09-20Pass the current cargo to `run-make` testsJosh Stone-0/+5
A couple tests were using `BOOTSTRAP_CARGO` with `-Zbuild-std`, but that stage0 cargo might not always be in sync with in-tree changes. In particular, those tests started failing on the beta branch because the older cargo couldn't find the library `Cargo.lock`, and then couldn't build the latest version of `compiler_builtins` that had nightly changes.
2024-09-20skip `FileCheck` check when running in dry-run modeonur-ozkan-11/+11
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-09-20remove workaround for make prepare and use dry-run build insteadonur-ozkan-10/+1
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-09-19Register tool docs for compiletest许杰友 Jieyou Xu (Joe)-0/+8
2024-09-19Auto merge of #130529 - onur-ozkan:better-ci-llvm-default, r=Kobzolbors-7/+11
change `download-ci-llvm` default from `if-unchanged` to `true` Since https://github.com/rust-lang/rust/pull/129473 and https://github.com/rust-lang/rust/pull/130202, using `download-ci-llvm=true` is now the better default and it also fixes #130515.
2024-09-19add change-tracker for new download-ci-llvm defaultonur-ozkan-0/+5
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-09-19change download-ci-llvm default from "if-unchanged" to trueonur-ozkan-7/+6
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-09-19Auto merge of #130406 - arttet:master, r=onur-ozkanbors-3/+12
Bump cc dependency * The [issue](https://github.com/rust-lang/rust/issues/130231) was fixed in the [PR](https://github.com/rust-lang/cc-rs/pull/1207) * The build artifacts of arm64e-apple-darwin can be found [here](https://github.com/arttet/rust-compiler-builder/actions/runs/10902308425)
2024-09-18bootstrap: Set the dylib path when building books with rustdocJosh Stone-9/+11
The library path is needed when the toolchain has been configured with `[rust] rpath = false`. Otherwise, building the reference book will get an error when it tries to run rustdoc, like: rustdoc: error while loading shared libraries: librustc_driver-2ec457c3b8826b72.so
2024-09-18Update the minimum external LLVM to 18Josh Stone-2/+2
2024-09-18Bump cc dependencyArtyom Tetyukhin-3/+12
2024-09-18Add the library workspace to the suggested rust-analyzer configbjorn3-0/+1
2024-09-18skip in-tree compiler build for llvm-bitcode-linker if ci-rustc is ononur-ozkan-2/+5
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-09-17delete sub directory "debug" to not delete the change-id fileonur-ozkan-3/+3
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-09-15Rollup merge of #130420 - jieyouxu:build_helpers_docs, r=onur-ozkanJubilee-0/+9
Register tool docs for `src/tools/build_helper` Fixes #130355.
2024-09-15Rollup merge of #130336 - onur-ozkan:simple-improvement, r=albertlarsan68Jubilee-5/+1
simplify `Build::update_existing_submodule` `Build::update_existing_submodule` is already doing the same thing..
2024-09-16bootstrap: register tool docs for src/tools/build_helper许杰友 Jieyou Xu (Joe)-0/+9
2024-09-15add change entry for `dist.vendor`onur-ozkan-0/+5
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-09-15make dist vendoring configurableonur-ozkan-6/+10
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-09-15Feed `GitInfo`s from `Config` to `Build`onur-ozkan-10/+31
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-09-15Rollup merge of #130202 - onur-ozkan:force-ci-llvm-on-default-profiles, ↵Stuart Cook-2/+9
r=Mark-Simulacrum set `download-ci-llvm = true` by default on "library" and "tools" profiles It's very rare for developers to need to modify LLVM, so "if-unchanged" isn't a good default for "tools" and "library" profiles since it fetches the LLVM submodule to track changes.
2024-09-14don't warn about a missing change-id in CIbinarycat-3/+7
fixes 130352
2024-09-14simplify `Build::update_existing_submodule`onur-ozkan-5/+1
`Build::update_existing_submodule` is already doing the same thing.. Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-09-14Auto merge of #130332 - Zalathar:rollup-eq0qvvy, r=Zalatharbors-43/+57
Rollup of 5 pull requests Successful merges: - #130138 (bootstrap: Print more debug info when `find_initial_libdir` fails) - #130199 (Don't call closure_by_move_body_def_id on FnOnce async closures in MIR validation) - #130302 (add llvm-bitcode-linker and llvm-tools bins to ci-rustc's sysroot) - #130306 (avoid updating LLVM submodule during bootstrap unit tests) - #130317 (`ProjectionElem` and `UnOp`/`BinOp` dont need to be `PartialOrd`/`Ord`) r? `@ghost` `@rustbot` modify labels: rollup
2024-09-14Rollup merge of #130306 - onur-ozkan:avoid-submodule-updates-in-tests, r=KobzolStuart Cook-0/+2
avoid updating LLVM submodule during bootstrap unit tests To test this, make sure you don't have `src/llvm-project` fetched and then set `llvm.download-ci-llvm=true` and run `x test bootstrap`.
2024-09-14Rollup merge of #130302 - onur-ozkan:130040-with-fixes, r=KobzolStuart Cook-39/+47
add llvm-bitcode-linker and llvm-tools bins to ci-rustc's sysroot https://github.com/rust-lang/rust/pull/130040 is [reverted](https://github.com/rust-lang/rust/pull/130292) because adding component binaries directly to the dist tarball of the compiler caused conflicts (see https://github.com/rust-lang/rust/issues/130291 and https://github.com/rust-lang/rustup/issues/4019). This PR solves the original problem without touching the dist tarball. r? Kobzol
2024-09-14Rollup merge of #130138 - Zalathar:initial-libdir, r=albertlarsan68Stuart Cook-4/+8
bootstrap: Print more debug info when `find_initial_libdir` fails From looking at the failure messages printed by #129775, my hypothesis is that `rustc --print=sysroot` sometimes prints the wrong path when the rustc executable is hardlinked in multiple places, at least on my macOS system. However, currently I don't have any concrete evidence of this actually happening. This PR therefore expands on #129775 by printing even more information on failure (including the actual rustc path), in the hope that when the failure next occurs we can confirm or reject the hypothesis that `rustc --print=sysroot` is printing the wrong path.
2024-09-14Auto merge of #125419 - GuillaumeGomez:add-gcc-to-dist, r=Kobzolbors-41/+187
[bootstrap] Add support for building gcc and libgccjit As `@eholk` summarized below: > From my understanding, this change would add libgccjit as an optional component to the Rust distribution. This library is licensed under GPLv2 and currently we do not have any other components under that license so it would be a new license, and one that is generally more restrictive than the other licenses we use. It'll greatly improve the experience for anyone wanting to work on the GCC backend from the compiler. Should help with https://github.com/rust-lang/rust/issues/124172. Will unblock #124353. r? `@Kobzol`
2024-09-13Auto merge of #130121 - lolbinarycat:bootstrap-warn-old-upstream-worktree, ↵bors-9/+1
r=albertlarsan68 bootstrap: handle worktrees in warn_old_master_branch fixes #130111
2024-09-13avoid updating LLVM submodule during bootstrap unit testsonur-ozkan-0/+2
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-09-13Remove gcc changes for dist buildGuillaume Gomez-12/+0
2024-09-13Rollup merge of #130261 - onur-ozkan:#130242, r=KobzolStuart Cook-1/+2
skip target sanity check when it's a `local-rebuild` Running the stage0 target sanity check on the newly built compiler can result in errors and incorrect assumptions. Resolves #130242
2024-09-13add llvm-bitcode-linker and llvm-tools bins to ci-rustc's sysrootonur-ozkan-39/+47
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-09-12Revert "Auto merge of #130040 - onur-ozkan:llvm-tools-with-ci-rustc, r=Kobzol"Eric Huss-121/+50
This reverts commit adaff5368b0c7b328a0320a218751d65ab1bba97, reversing changes made to 2e8db5e9e39c2bf7729113b3041ef4011d90ac5a.
2024-09-12Auto merge of #130040 - onur-ozkan:llvm-tools-with-ci-rustc, r=Kobzolbors-50/+121
unify `llvm-bitcode-linker`, `wasm-component-ld` and llvm-tools logics To use the precompiled `ci-rustc` in CI, we need to install `llvm-bitcode-linker` and LLVM tools into ci-rustc's sysroot. Without them some CI pipelines may fail, as shown [here](https://github.com/rust-lang/rust/pull/122709#issuecomment-2334365988). Blocker for https://github.com/rust-lang/rust/pull/122709
2024-09-12skip target sanity check when it's a `local-rebuild`onur-ozkan-1/+2
Running the stage0 target sanity check on the newly built compiler can result in errors and incorrect assumptions. Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-09-11unify `llvm-bitcode-linker`, `wasm-component-ld` and llvm-tools logicsonur-ozkan-50/+121
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-09-11Rollup merge of #130161 - onur-ozkan:fmt-changed-files, r=Kobzol,RalfJungMatthias Krüger-53/+23
refactor merge base logic and fix `x fmt` When remote upstream is not configured, using [get_git_modified_files](https://github.com/rust-lang/rust/blob/38e3a5771cefc9362976a605549f8b04d5707311/src/tools/build_helper/src/git.rs#L114) to find modified files fails because [get_rust_lang_rust_remote](https://github.com/rust-lang/rust/blob/38e3a5771cefc9362976a605549f8b04d5707311/src/tools/build_helper/src/git.rs#L46-L48) can not resolve "rust-lang/rust" from the git output. The changes in this PR makes bootstrap to find the latest bors commit, treating it as the "closest upstream commit" so that the change tracker logic can use it to find the diffs. In addition, [skips formatting](https://github.com/rust-lang/rust/commit/e3924544832668a6e239153a90d3be2077fbdce4) if there are no modified files. Fixes #130147
2024-09-10skip formatting if no files have been modifiedonur-ozkan-0/+5
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-09-10handle `GitConfig` for `tools/compiletest`onur-ozkan-0/+1
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-09-10add change entry for "tools" and "library" profile updateonur-ozkan-0/+5
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-09-10force ci-llvm by default on library and tools profilesonur-ozkan-2/+4
It's very rare for developers to need to modify LLVM, so "if-unchanged" isn't a good default since it fetches the LLVM submodule to track changes. Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-09-10Rollup merge of #130143 - RalfJung:miri-test-libstd, r=compiler-errorsMatthias Krüger-2/+6
miri-test-libstd: add missing BOOTSTRAP_ARGS Note sure if BOOTSTRAP_ARGS will make any difference here, but all the other x.py invocations have it and I did not *deliberately* leave it away when I added these, so... probably best to add them? Also don't unnecessarily set BOOTSTRAP_SKIP_TARGET_SANITY while we are at it.
2024-09-10bootstrap: Print more debug info when `find_initial_libdir` failsZalathar-4/+8
2024-09-09Rollup merge of #130162 - onur-ozkan:bump-ci-llvm-stamp, r=KobzolJubilee-1/+1
bump download-ci-llvm-stamp This should trigger the download and extraction of the ci-llvm tarball, which should resolve https://github.com/rust-lang/rust/issues/130144.
2024-09-09Rollup merge of #129473 - Urgau:fix-llvm-if-unchanged, r=onur-ozkanJubilee-2/+9
use `download-ci-llvm=true` in the default compiler config https://github.com/rust-lang/rust/commit/1ca2708e77ac735adc3824501667694b4f9c1303 made it so that the `src/llvm-project` submodule has to be checkout for `download-ci-llvm = "if-unchanged"` to know if the submodule has been changed, but that is not required, if the submodule hasn't been checkout it cannot have been modified. ~~This PR restore the previous behavior by only updating the submodule if it has already been checkout.~~ This PR makes `download-ci-llvm = true` check if CI llvm is available and make it the default for the compiler profile, as to prevent unnecessarily checking out `src/llvm-project` with `"if-unchanged"`. r? `````@onur-ozkan`````
2024-09-09Auto merge of #130165 - matthiaskrgr:rollup-fsnmz3t, r=matthiaskrgrbors-0/+27
Rollup of 9 pull requests Successful merges: - #129929 (`rustc_mir_transform` cleanups, round 2) - #130022 (Dataflow/borrowck lifetime cleanups) - #130064 (fix ICE in CMSE type validation) - #130067 (Remove redundant check in `symlink_hard_link` test) - #130131 (Print a helpful message if any tests were skipped for being up-to-date) - #130137 (Fix ICE caused by missing span in a region error) - #130153 (use verbose flag as a default value for `rust.verbose-tests`) - #130154 (Stabilize `char::MIN`) - #130158 (Update books) r? `@ghost` `@rustbot` modify labels: rollup