Commit Graph

2851 Commits

Author SHA1 Message Date
Guillaume dceeb20bbc Fix LegacyKeyValueFormat report from docker build: various 2026-03-07 10:26:23 +01:00
Jonathan Brouwer ec5e4aacbc Rollup merge of #153371 - homersimpsons:chore/fix-LegacyKeyValueFormat-arm, r=marcoieni
Fix LegacyKeyValueFormat report from docker build: arm

Part of rust-lang/rust#152305

r? @marcoieni
2026-03-07 01:42:37 +01:00
Guillaume b89deb41bf Fix LegacyKeyValueFormat report from docker build: arm 2026-03-04 12:02:16 +01:00
Matthias Krüger 93838f1d78 Rollup merge of #153224 - homersimpsons:chore/fix-LegacyKeyValueFormat-disabled, r=marcoieni
Fix LegacyKeyValueFormat report from docker build: disabled

Part of https://github.com/rust-lang/rust/pull/152305

Following https://github.com/rust-lang/rust/pull/153109

r? @marcoieni
2026-03-04 09:49:02 +01:00
Guillaume 797f06675a Fix LegacyKeyValueFormat report from docker build: host-aarch64 2026-03-02 17:03:40 +01:00
Guillaume 4ed37668c4 Fix LegacyKeyValueFormat report from docker build: disabled 2026-02-28 17:37:52 +01:00
Jonathan Brouwer 185833ee7a Rollup merge of #153109 - homersimpsons:chore/fix-LegacyKeyValueFormat-aarch64-gnu-debug, r=marcoieni
Fix LegacyKeyValueFormat report from docker build: aarch64-gnu-debug

Part of rust-lang/rust#152305

r? @marcoieni
2026-02-28 12:52:55 +01:00
Guillaume 6df216934c Fix LegacyKeyValueFormat report from docker build: aarch64-gnu-debug 2026-02-27 13:03:28 +01:00
Jonathan Brouwer 7aa4f04b64 Rollup merge of #153079 - RalfJung:revert-macos-dyn, r=jieyouxu
Revert "Move aarch64-apple dist builder to dynamic llvm linking"

Reverts c033de932e (part of https://github.com/rust-lang/rust/pull/152768) in order to fix  https://github.com/rust-lang/rust/issues/153077.
2026-02-26 09:57:02 +01:00
Jacob Pratt 5eb535a51e Rollup merge of #148146 - the8472:ci-use-extra-disk, r=marcoieni
CI: use alternative disks if available

*[View all comments](https://triagebot.infra.rust-lang.org/gh-comments/rust-lang/rust/pull/148146)*

cleaning up disk space takes a lot of time, sometimes [30 minutes](https://github.com/rust-lang/rust/actions/runs/18817052904/job/53686898697)
2026-02-25 21:42:52 -05:00
Ralf Jung 5b99fcd043 Revert "Move aarch64-apple dist builder to dynamic llvm linking and enable autodiff in CI for it"
This reverts commit c033de932e.
2026-02-25 13:49:49 +01:00
Jonathan Brouwer 8583fea3e8 Rollup merge of #152845 - jieyouxu:split-tidy-from-pr-test-jobs, r=marcoieni
Skip `tidy` in PR CI jobs not dedicated to running `tidy`

This is both:

1. Redundant, since PR CI has a dedicated `tidy` job which runs in parallel and doesn't early-cancel other PR CI jobs
2. A contributor roadblock, because tidy failures in one test jobs block further failures from other test jobs being revealed.

(2) defeats the parallel-but-not-early-cancelling reason of the separate `tidy` job in the first place.

This PR skips tidy from being run in PR CI jobs that are not dedicated to running `tidy` (i.e. the non-`tidy` CI jobs).

Fixes rust-lang/rust#148932.
2026-02-24 14:41:52 +01:00
Jonathan Brouwer e173d63004 Rollup merge of #152908 - bjorn3:dist_profile_remap_debuginfo, r=Kobzol
Enable rust.remap-debuginfo in the dist profile

Anyone who distributes rustc almost certainly wants to enable this option. It is necessary for reproducibility and for a distributed rustc local paths are useless anyway. And finally it improves privacy if you distribute a local build.
2026-02-23 20:46:11 +01:00
bjorn3 262744eb36 Enable rust.remap-debuginfo in the dist profile
Anyone who distributes rustc almost certainly wants to enable this
option. It is necessary for reproducibility and for a distributed rustc
local paths are useless anyway. And finally it improves privacy if you
distribute a local build.
2026-02-23 12:59:04 +00:00
Jieyou Xu 498f1114ec ci: skip tidy in PR CI jobs not dedicated to running tidy
This is both:

1. Redundant, since PR CI has a dedicated `tidy` job
2. A contributor roadblock, because tidy failures block further failures
   from being revealed.

We *only* skip tidy in PR CI and not in Merge CI because tidy in Merge
CI will early-cancel *anyway*.
2026-02-22 00:00:07 +08:00
Manuel Drehwald c033de932e Move aarch64-apple dist builder to dynamic llvm linking and enable autodiff in CI for it
Co-authored-by: sgasho <SuganoShota1999@gmail.com>
2026-02-20 16:10:10 -05:00
Manuel Drehwald 4bf4ff1617 Enable autodiff in CI for mingw-llvm,linux 2026-02-20 16:10:10 -05:00
Jana Dönszelmann 485f76b835 Rollup merge of #152609 - mati865:gnullvm-llvm-dll, r=bjorn3
Install LLVM DLL in the right place on Windows

Continuation of https://github.com/rust-lang/rust/pull/151795 towards https://github.com/rust-lang/rust/issues/151774.

Unlike other systems, Windows requires runtime libraries to be present in `PATH` or right next to the binary.
So, we copy the library next to the binary as the easier solution.

Tested building `rust-openssl` in debug and release modes, but the difference is within noise margin.
2026-02-17 14:18:43 +01:00
Mateusz Mikuła 1d1280aae1 Build shared LLVM lib for windows-gnullvm 2026-02-16 14:26:14 +01:00
Jacob Pratt 9f0b29be99 Rollup merge of #152578 - heiher:ci-crosstool, r=Mark-Simulacrum
ci: Lock cross toolchain version and update docs

This PR locks the cross-toolchain component version to avoid unexpected changes when bumping crosstool-ng, and updates the toolchain configuration in the docs to match the actual setup.

try-job: dist-arm-linux-musl
try-job: dist-loongarch64-linux
try-job: dist-loongarch64-musl
try-job: dist-powerpc64-linux-musl
try-job: dist-powerpc64le-linux-gnu
try-job: dist-powerpc64le-linux-musl
2026-02-14 23:17:39 -05:00
bors 29fa07e3db Auto merge of #149389 - ShoyuVanilla:local-region-param-wf, r=lcnr
WF check lifetime bounds for locals with type params

FCP proposal in https://github.com/rust-lang/rust/pull/149389#issuecomment-3669689488

Fixes rust-lang/rust#115175
Fixes rust-lang/rust#148854
2026-02-14 02:52:05 +00:00
WANG Rui df798ad68e ci: Lock cross toolchain version and update docs 2026-02-13 22:11:43 +08:00
WANG Rui e37374b1ac ci: dist-arm-linux: Cleanup unused crosstool-ng 2026-02-13 22:11:42 +08:00
WANG Rui c0c3c59b83 ci: Drop outdated toolchain configuration: aarch64-linux-gnu.defconfig 2026-02-13 22:11:42 +08:00
Jonathan Brouwer fd598ebac8 Rollup merge of #152440 - him2him2:fix-typos-compiler, r=Kivooeo,Kobzol
Fix typos and grammar in compiler and build documentation

Fix contextual typos and grammar issues in compiler and build docs that automated spellcheckers miss:

- `compiler/rustc_codegen_llvm/src/debuginfo/doc.md`: fix 5 issues (adaption → adaptation, "allow to" → "allow V-ing" x3, later → latter + plural)
- `compiler/rustc_thread_pool/src/sleep/README.md`: fix 2 issues (idle → active per context, then → than)
- `src/bootstrap/README.md`: fix 2 issues (rust → Rust, add missing article "the")
- `src/ci/docker/README.md`: fix 2 issues ("come form" → "come from", grammar)

No functional changes.
2026-02-13 13:35:02 +01:00
Miguel Ojeda 6a3baf6f27 CI: rfl: add temporary commit for compiler bug
The compiler is fixing a bug [1] that Rust for Linux happened to trigger,
thus temporarily add Benno's patch to the CI job.

As usual, the patch will eventually make it to the Linux kernel so that
both sides are good.

Cc: Benno Lossin <lossin@kernel.org>
Link: https://github.com/rust-lang/rust/pull/149389 [1]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
2026-02-13 00:33:55 +09:00
Mads Marquart 4fa388cb52 Disable profiler runtime on tvOS and watchOS 2026-02-10 17:42:13 +01:00
Mads Marquart 4a01f22a3e Bump tvOS, visionOS and watchOS Aarch64 targets to tier 2 2026-02-10 17:42:12 +01:00
ron 11e4873b96 Fix typos and grammar in compiler and build documentation
- compiler/rustc_codegen_llvm/src/debuginfo/doc.md: fix 5 issues
  (adaption → adaptation, "allow to" → "allow V-ing" x3, later → latter + plural)
- compiler/rustc_thread_pool/src/sleep/README.md: fix 2 issues
  (idle → active per context, then → than)
- src/bootstrap/README.md: fix 2 issues (rust → Rust, add missing article "the")
- src/ci/docker/README.md: fix 2 issues ("come form" → "come from", grammar)
2026-02-10 10:22:05 -05:00
Mads Marquart 343b469cad Update to Xcode 26.2
This also updates the macOS runners to run on macOS 15 (the macOS 14
runners only have up to Xcode 16.2 available).
2026-02-06 20:19:10 +01:00
bors bce89b6a56 Auto merge of #152230 - JonathanBrouwer:rollup-de59XEq, r=JonathanBrouwer
Rollup of 6 pull requests

Successful merges:

 - rust-lang/rust#151590 (cmse: don't use `BackendRepr` when checking return type)
 - rust-lang/rust#151945 (feat: Add `NonZero::<T>::from_str_radix`)
 - rust-lang/rust#152000 (Fix ICE in normalizing inherent associated consts with `#[type_const]`)
 - rust-lang/rust#152192 (Always use Xcode-provided Clang in macOS CI)
 - rust-lang/rust#152196 (bootstrap: Remove `ShouldRun::paths`)
 - rust-lang/rust#152222 (Re-add TaKO8Ki to triagebot review queue)
2026-02-06 15:32:38 +00:00
Jonathan Brouwer 5372fab729 Rollup merge of #152192 - madsmtm:remove-use-xcode-clang, r=shepmaster
Always use Xcode-provided Clang in macOS CI

Most of our macOS CI runners use the Xcode-provided Clang. `dist-apple-various` still downloads Clang from LLVM's prebuilt sources, which is a bit problematic, because we're still using the Xcode-provided _headers_.

As a concrete example, using Xcode's Clang is required by https://github.com/rust-lang/rust/pull/152013, as otherwise updating to Xcode 26 headers fails with an obscure `fatal error: 'net/route.h' file not found`, see [this build log](https://github.com/rust-lang/rust/pull/152013#issuecomment-3838801617). I suspect this is because building the new headers isn't officially supported with the older LLVM/Clang 15.

This PR removes that functionality, so that we instead always build with the Xcode-provided Clang. This is effectively the same as setting `USE_XCODE_CLANG=1` on `dist-apple-various` as well, but I thought I'd clean things up while I'm at it.

I didn't find the reason why we did this in first place, maybe because the Xcode Clang at the time was too out of date to build LLVM? It doesn't seem to be a problem anymore though.

r? t-infra
2026-02-06 15:33:40 +01:00
bors 55bfca7d7d Auto merge of #152183 - alexcrichton:update-wasi-sdk, r=jieyouxu
Update wasi-sdk used in CI/releases

This is similar to prior updates such as rust-lang/rust#149037 in that this is just updating a URL. This update though has some technical updates accompanying it as well, however:

* The `wasm32-wasip2` target no longer uses APIs from WASIp1 on this target, even for startup. This means that the final binary no longer has an "adapter" which can help making instantiation of a component a bit more lean.

* In rust-lang/rust#147572 libstd was updated to use wasi-libc more often on the `wasm32-wasip2` target. This uncovered a number of bugs in wasi-libc such as rust-lang/rust#149864, rust-lang/rust#150291, and rust-lang/rust#151016. These are all fixed in wasi-sdk-30 so the workarounds in the standard library are all removed.

Overall this is not expected to have any sort of major impact on users of WASI targets. Instead it's expected to be a normal routine update to keep the wheels greased and oiled.
2026-02-06 12:21:48 +00:00
Alex Crichton 8e26944f62 Update wasi-sdk used in CI/releases
This is similar to prior updates such as 149037 in that this is just
updating a URL. This update though has some technical updates
accompanying it as well, however:

* The `wasm32-wasip2` target no longer uses APIs from WASIp1 on this
  target, even for startup. This means that the final binary no longer
  has an "adapter" which can help making instantiation of a component a
  bit more lean.

* In 147572 libstd was updated to use wasi-libc more often on the
  `wasm32-wasip2` target. This uncovered a number of bugs in
  wasi-libc such as 149864, 150291, and 151016. These are all fixed in
  wasi-sdk-30 so the workarounds in the standard library are all
  removed.

Overall this is not expected to have any sort of major impact on users
of WASI targets. Instead it's expected to be a normal routine update to
keep the wheels greased and oiled.
2026-02-05 15:04:55 -08:00
Mads Marquart 3882573751 Always use default Clang on macOS
Instead of manually setting up CC/CXX environment variables, use the
default configuration that Xcode gives us.
2026-02-05 23:58:49 +01:00
Mads Marquart 19a7bd9a97 Remove AR=ar env var
Bootstrap no longer infers the archiver as `clang-ar`, so we don't need
to set this explicitly.
2026-02-05 23:55:59 +01:00
Mads Marquart 0bbc2f2008 Remove USE_XCODE_CLANG
Instead, always use the Xcode-provided Clang to build LLVM.
2026-02-05 23:55:56 +01:00
Jonathan Brouwer de3e69ce1a Rollup merge of #152113 - Kobzol:fix-codebuild-summary, r=marcoieni
Fix GitHub CI summary in CodeBuild

We need to copy the summary only after the data is copied out from the Docker image in Docker-in-Docker/CodeBuild scenarios. This was broken for many months now.

Compare the summary https://github.com/rust-lang/rust/actions/runs/21663321354 (before) and https://github.com/rust-lang/rust/actions/runs/21671277310 (after) - the dist-x86_64-linux job now correctly contains the summary generated by `opt-dist`.

r? @marcoieni
2026-02-05 12:16:57 +01:00
Jakub Beránek 34c6ae0d48 Fix GitHub CI summary in CodeBuild 2026-02-04 16:41:21 +01:00
Jonathan Brouwer b86fbcd358 Rollup merge of #151810 - Unique-Usman:ua/debuginfostat, r=Kobzol
citool: report debuginfo test statistics

Extend CI postprocessing to aggregate pass/fail/ignored counts for debuginfo tests. Tests are identified via their reported suite names (e.g. debuginfo-gdb, debuginfo-lldb or debuginfo-cdb).
2026-02-04 14:39:20 +01:00
Jonathan Brouwer 841c462eb0 Rollup merge of #151534 - davidtwco:destabilise-target-spec-json-again, r=chenyukang
target: fix destabilising target-spec-json

cc rust-lang/rust#151528

rust-lang/rust#150151 missed a case and didn't entirely destabilise target-spec-json - this patch corrects that.

Closes https://github.com/rust-lang/rust/issues/71009
2026-02-04 14:39:17 +01:00
Jonathan Brouwer 71ed31eece Rollup merge of #152060 - heiher:opt-loong64-linux, r=Kobzol
ci: Optimize loongarch64-linux dist builders

Tune the build configuration for loongarch64-linux targets to speed up rustc.

Changes include:
- Enable jemalloc and rust thin-lto.
- Set codegen-units=1.

These changes reduce rustc-perf compile time by ~17%.
2026-02-04 08:12:41 +01:00
WANG Rui ac160bba12 ci: Optimize loongarch64-linux dist builders
Tune the build configuration for loongarch64-linux targets to speed up rustc.

Changes include:
- Enable jemalloc and rust thin-lto.
- Set codegen-units=1 and disable debug assertions.

These changes reduce rustc-perf compile time by ~17%.
2026-02-04 10:29:50 +08:00
Usman Akinyemi 07e4a994d6 citool: report debuginfo test statistics
Extend CI postprocessing to aggregate pass/fail/ignored counts
for debuginfo tests. Tests are identified via their reported
suite names (e.g. debuginfo-gdb, debuginfo-lldb or debuginfo-cdb).

Signed-off-by: Usman Akinyemi <usmanakinyemi202@gmail.com>
2026-02-04 06:44:09 +05:30
Jonathan Brouwer 9935c3c2b9 Rollup merge of #152012 - madsmtm:unselect-xcode, r=shepmaster
Use `DEVELOPER_DIR` instead of a custom `xcode-select` script

`DEVELOPER_DIR` is the standard environment variable for overriding the Xcode version, there is no need to invoke `xcode-select --switch` manually to do this.

The variable is documented in both `man xcode-select` and `man xcrun`.

Using this makes reproducing things locally a little easier (you can just copy the env var).

r? shepmaster
2026-02-03 23:29:56 +01:00
Mads Marquart 19e4108ed1 Use DEVELOPER_DIR instead of a custom xcode-select script
`DEVELOPER_DIR` is the standard environment variable for overriding the
Xcode version, there is no need to invoke `xcode-select --switch`
manually to do this.

The variable is documented in both `man xcode-select` and `man xcrun`.
2026-02-03 20:14:52 +01:00
Jonathan Brouwer 458d536cb1 Rollup merge of #152034 - Kobzol:ci-analysis-time, r=marcoieni
Show largest job duration changes in hours and minutes in the post-merge report

This was suggested by... someone, somewhere. But it's a good idea.

See https://github.com/rust-lang/rust/pull/152025#issuecomment-3839702972 - now instead of seconds it would show this:

# Job duration changes
1. [dist-apple-various](https://github.com/rust-lang/rust/actions/runs/21617345733#summary-62299011925): 1h 3m -> 1h 29m (+41.5%)
2. [dist-x86_64-apple](https://github.com/rust-lang/rust/actions/runs/21617345733#summary-62299011972): 2h 1m -> 2h 21m (+16.4%)
3. [dist-ohos-x86_64](https://github.com/rust-lang/rust/actions/runs/21617345733#summary-62299011829): 1h 11m -> 1h 19m (+12.4%)
4. [x86_64-gnu-llvm-20](https://github.com/rust-lang/rust/actions/runs/21617345733#summary-62299011909): 1h 9m -> 1h 17m (+11.9%)
5. [pr-check-1](https://github.com/rust-lang/rust/actions/runs/21617345733#summary-62299011862): 32m 27s -> 28m 44s (-11.4%)
6. [tidy](https://github.com/rust-lang/rust/actions/runs/21617345733#summary-62299011845): 2m 37s -> 2m 52s (+9.9%)
7. [armhf-gnu](https://github.com/rust-lang/rust/actions/runs/21617345733#summary-62299011763): 1h 22m -> 1h 30m (+9.5%)
8. [dist-aarch64-apple](https://github.com/rust-lang/rust/actions/runs/21617345733#summary-62299011941): 1h 54m -> 1h 44m (-9.1%)
9. [x86_64-gnu-llvm-21-3](https://github.com/rust-lang/rust/actions/runs/21617345733#summary-62299011924): 1h 45m -> 1h 54m (+9.1%)
10. [x86_64-gnu-llvm-21-1](https://github.com/rust-lang/rust/actions/runs/21617345733#summary-62299011923): 1h 9m -> 1h 15m (+9.0%)
2026-02-03 18:54:46 +01:00
Jakub Beránek cb9c43b7e8 Show largest job duration changes in hours and minutes, rather than just seconds 2026-02-03 11:47:53 +01:00
Jakub Beránek 6b3d1e0604 Update Cargo.lock
It probably wasn't committed after an earlier change.
2026-02-03 11:47:30 +01:00
Miguel Ojeda 2a9de6ba85 CI: rfl: move to temporary commit to pass -Zunstable-options for custom target specs
This also takes the chance to move forward the job to Linux v6.19-rc7,
thus the previous workaround is not needed anymore.

Link: https://github.com/rust-lang/rust/pull/151534
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
2026-01-30 13:54:35 +00:00