about summary refs log tree commit diff
path: root/compiler/rustc_errors/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2025-06-19 06:27:02 +0000
committerbors <bors@rust-lang.org>2025-06-19 06:27:02 +0000
commit70e2b4a4d197f154bed0eb3dcb5cac6a948ff3a3 (patch)
treefc34900c6bd1b43f0cb0d9ea11b48b7eb0b73285 /compiler/rustc_errors/src
parent8a65ee08296b36342bf7c3cdc15312ccbc357227 (diff)
parent2beccc4d8e5066a42e6623d91e7991870d36feb2 (diff)
downloadrust-70e2b4a4d197f154bed0eb3dcb5cac6a948ff3a3.tar.gz
rust-70e2b4a4d197f154bed0eb3dcb5cac6a948ff3a3.zip
Auto merge of #139244 - jieyouxu:exp/auto-cross-run-make, r=Kobzol
Enable automatic cross-compilation in run-make tests

Supersedes rust-lang/rust#138066.

Blocker for rust-lang/rust#141856.

Based on rust-lang/rust#138066 plus `rustdoc()` cross-compile changes.

### Summary

This PR automatically specifies `--target` to `rustc()` and `rustdoc()` to have `rustc`/`rustdoc` produce cross-compiled artifacts in run-make tests by default, unless:

- `//@ ignore-cross-compile` is used, or
- `bare_{rustc,rustdoc}` are used, or
- Explicit `.target()` is specified, which overrides the default cross-compile target.

Some tests are necessarily modified:

- Tests that have `.target(target())` have that incantation removed (since this is now automatically the default).
- Some tests have `//@ needs-target-std`, but are a necessary-but-insufficient condition, and are changed to `//@ ignore-cross-compile` instead as host-only tests.
    - A few tests received `//@ ignore-musl` that fail against `x86_64-unknown-linux-musl` because of inability to find `-lunwind`. AFAICT, they don't *need* to test cross-compiled artifacts.
    - Some tests are constrained to host-only for now, because the effort to make them pass on cross-compile does not seem worth the complexity, and it's not really *meaningfully* improving test coverage.

try-job: dist-various-1
Diffstat (limited to 'compiler/rustc_errors/src')
0 files changed, 0 insertions, 0 deletions