bors
fb4aebddd1
Auto merge of #131069 - matthiaskrgr:rollup-jg1icf9, r=matthiaskrgr
...
Rollup of 5 pull requests
Successful merges:
- #131023 (Copy correct path to clipboard for modules/keywords/primitives)
- #131035 (Preserve brackets around if-lets and skip while-lets)
- #131038 (Fix `adt_const_params` leaking `{type error}` in error msg)
- #131053 (Improve `--print=check-cfg` documentation)
- #131056 (enable compiler fingerprint logs in verbose mode)
r? `@ghost`
`@rustbot` modify labels: rollup
2024-09-30 19:13:29 +00:00
Matthias Krüger
fd67755554
Rollup merge of #131056 - onur-ozkan:cargo-compiler-fingerprint, r=Kobzol
...
enable compiler fingerprint logs in verbose mode
This provides very useful logs especially when debugging build cache-related stuff.
2024-09-30 18:25:15 +02:00
bors
63a0bdd562
Auto merge of #130951 - tgross35:cargo-update-bootstrap, r=Kobzol
...
Bump `cc` and run `cargo update` for bootstrap
Bump `cc` to 1.1.22, which includes a caching fix. Also run `cargo update` which does a minor increment on a few dependencies.
2024-09-30 16:19:00 +00:00
bors
c3ce4e66a5
Auto merge of #131063 - matthiaskrgr:rollup-hfs3fo1, r=matthiaskrgr
...
Rollup of 4 pull requests
Successful merges:
- #130895 (make type-check-4 asm tests about non-const expressions)
- #131057 (Reject leading unsafe in `cfg!(...)` and `--check-cfg`)
- #131060 (Drop conditionally applied cargo `-Zon-broken-pipe=kill` flags to fix stage 1 cargo rebuilds)
- #131061 (replace manual verbose checks with `Config::is_verbose`)
r? `@ghost`
`@rustbot` modify labels: rollup
2024-09-30 13:33:35 +00:00
Matthias Krüger
5ba81d723a
Rollup merge of #131061 - onur-ozkan:verbose-checks, r=Kobzol
...
replace manual verbose checks with `Config::is_verbose`
self-explanatory
2024-09-30 14:33:48 +02:00
onur-ozkan
fd1429a56b
replace manual verbose checks with Config::is_verbose
...
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-09-30 14:20:12 +03:00
许杰友 Jieyou Xu (Joe)
5a7058c5a5
Drop conditionally applied cargo -Zon-broken-pipe=kill flags
...
These conditionally applied flags trigger rebuilds because they can
invalidate previous cargo build cache.
2024-09-30 19:09:29 +08:00
onur-ozkan
874d55cea8
enable compiler fingerprint logs in verbose mode
...
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-09-30 13:14:05 +03:00
Manuel Drehwald
bc2a913a9b
add has_enzyme/needs-enzyme to the test infra
2024-09-29 18:27:33 -04:00
Guillaume Gomez
f39101a5f6
Rollup merge of #130383 - onur-ozkan:ignore-llvm-changes-on-ci-llvm-true, r=Mark-Simulacrum
...
check if it's rust-lang/rust CI job in `llvm::is_ci_llvm_modified`
Changes `llvm::is_ci_llvm_modified` to only work on rust-lang/rust managed CI.
2024-09-29 12:37:50 +02:00
onur-ozkan
5840d8791c
in llvm::is_ci_llvm_modified, check if it's rust-lang/rust CI job
...
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-09-29 07:20:19 +03:00
Matthias Krüger
f33fa3f57b
Rollup merge of #130918 - onur-ozkan:better-llvm-submodule-handling, r=Kobzol
...
simplify LLVM submodule handling
Fixes #130906 .
2024-09-28 15:11:21 +02:00
Trevor Gross
3fb21f38fd
Bump cc and run cargo update for bootstrap
...
Bump `cc` to 1.1.22, which includes a caching fix. Also run `cargo
update` which does a minor increment on a few dependencies.
2024-09-27 16:21:03 -04:00
Matthias Krüger
56e5bfac28
Rollup merge of #130459 - onur-ozkan:#130449, r=albertlarsan68
...
delete sub build directory "debug" to not delete the change-id file
Fixes #130449
2024-09-27 19:07:59 +02:00
onur-ozkan
cd1b245c99
improve LLVM submodule handling logic in llvm::prebuilt_llvm_config
...
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-09-27 16:09:26 +03:00
Guillaume Gomez
a4a591a78c
Rollup merge of #130517 - bjorn3:update_ra_config, r=onur-ozkan
...
Add the library workspace to the suggested rust-analyzer config
2024-09-27 00:43:31 +02:00
许杰友 Jieyou Xu (Joe)
705ab171a4
Fix tool cargo being off-by-one from rustc staging
...
Previously if you pass compiler stage 1 to `tool::Cargo`, it will build
stage2 rustc and give you back a cargo built with stage2 rustc, which is
not what we want.
This commit adds a hack that chops off a stage from the compiler passed
to `tool::Cargo`, meaning that we will get a cargo built with stage 1
compiler, avoiding unnecessary and incorrect build of stage2 rustc and
the cargo built by that.
2024-09-24 19:04:51 +08:00
许杰友 Jieyou Xu (Joe)
6d132d9a5d
Pass bootstrap cargo when --stage 0 and COMPILETST_FORCE_STAGE0
...
And stop passing `BOOTSTRAP_CARGO` as an env var, instead the provided
cargo should go through `--cargo-path.`
2024-09-24 15:45:36 +08:00
bors
35daf8b8aa
Auto merge of #130620 - onur-ozkan:update-make-prepare, r=Kobzol
...
remove workaround for make prepare and use dry-run build instead
Removes an annoying hard-coded logic.
try-job: x86_64-msvc
2024-09-23 22:19:24 +00:00
onur-ozkan
f6d3cd7345
invoke cmake check with run_always
...
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-09-23 19:47:12 +03:00
Jubilee
c58e3cb1e2
Rollup merge of #130536 - cuviper:rustbook-dylib-path, r=Mark-Simulacrum
...
bootstrap: Set the dylib path when building books with rustdoc
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-23 07:54:43 -07:00
onur-ozkan
6658c8e244
check if the LLVM submodule is fetched in is_ci_llvm_modified
...
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-09-23 07:41:56 +03:00
Michael Goulet
c682aa162b
Reformat using the new identifier sorting from rustfmt
2024-09-22 19:11:29 -04:00
Jubilee
959f33ac85
Rollup merge of #130648 - onur-ozkan:enzyme-linking, r=Kobzol
...
move enzyme flags from general cargo to rustc-specific cargo
Resolves #130637 .
2024-09-21 22:34:32 -07:00
onur-ozkan
f23d0b9c9d
move enzyme flags from general cargo to rustc-specific cargo
...
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-09-21 07:35:27 +03:00
Josh Stone
4e53640b17
Pass the current cargo to run-make tests
...
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-20 15:47:36 -07:00
onur-ozkan
37ce36f130
skip FileCheck check when running in dry-run mode
...
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-09-20 19:33:14 +03:00
onur-ozkan
17aab60d6f
remove workaround for make prepare and use dry-run build instead
...
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-09-20 17:31:36 +03:00
许杰友 Jieyou Xu (Joe)
b3e1e4194e
Register tool docs for compiletest
2024-09-19 16:38:02 +00:00
bors
13a5097796
Auto merge of #130529 - onur-ozkan:better-ci-llvm-default, r=Kobzol
...
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-19 13:32:00 +00:00
onur-ozkan
05f10f4765
add change-tracker for new download-ci-llvm default
...
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-09-19 14:28:08 +03:00
onur-ozkan
7d579046c8
change download-ci-llvm default from "if-unchanged" to true
...
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-09-19 14:28:00 +03:00
bors
b0af276da3
Auto merge of #130406 - arttet:master, r=onur-ozkan
...
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-19 09:20:08 +00:00
Josh Stone
de4c8975aa
bootstrap: Set the dylib path when building books with rustdoc
...
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-18 15:01:22 -07:00
Josh Stone
6fd8a50680
Update the minimum external LLVM to 18
2024-09-18 13:53:31 -07:00
Artyom Tetyukhin
ed2e0abc51
Bump cc dependency
2024-09-18 19:34:36 +04:00
bjorn3
4788e8c34a
Add the library workspace to the suggested rust-analyzer config
2024-09-18 14:48:30 +00:00
onur-ozkan
d2c58ec6c4
delete sub directory "debug" to not delete the change-id file
...
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-09-17 07:53:19 +03:00
Jubilee
f64d1c1f8f
Rollup merge of #130420 - jieyouxu:build_helpers_docs, r=onur-ozkan
...
Register tool docs for `src/tools/build_helper`
Fixes #130355 .
2024-09-15 23:51:26 -07:00
Jubilee
9025fe9e64
Rollup merge of #130336 - onur-ozkan:simple-improvement, r=albertlarsan68
...
simplify `Build::update_existing_submodule`
`Build::update_existing_submodule` is already doing the same thing..
2024-09-15 23:51:25 -07:00
许杰友 Jieyou Xu (Joe)
1f48a67a25
bootstrap: register tool docs for src/tools/build_helper
2024-09-16 00:33:33 +00:00
onur-ozkan
13542cdb80
add change entry for dist.vendor
...
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-09-15 12:24:07 +03:00
onur-ozkan
741b3164d8
make dist vendoring configurable
...
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-09-15 12:23:02 +03:00
onur-ozkan
90745bd1ed
Feed GitInfos from Config to Build
...
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-09-15 07:41:24 +03:00
Stuart Cook
36ee8520e8
Rollup merge of #130202 - onur-ozkan:force-ci-llvm-on-default-profiles, 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-15 12:14:56 +10:00
onur-ozkan
d9e560cd54
simplify Build::update_existing_submodule
...
`Build::update_existing_submodule` is already doing the same thing..
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-09-14 07:57:19 +03:00
bors
4a47e8e449
Auto merge of #130332 - Zalathar:rollup-eq0qvvy, r=Zalathar
...
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-14 04:37:41 +00:00
Stuart Cook
59698a711f
Rollup merge of #130306 - onur-ozkan:avoid-submodule-updates-in-tests, r=Kobzol
...
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-14 11:53:13 +10:00
Stuart Cook
97475df89d
Rollup merge of #130302 - onur-ozkan:130040-with-fixes, r=Kobzol
...
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-14 11:53:12 +10:00
Stuart Cook
2bf0dd2735
Rollup merge of #130138 - Zalathar:initial-libdir, r=albertlarsan68
...
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-14 11:53:11 +10:00