bors
70e2b4a4d1
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
2025-06-19 06:27:02 +00:00
..
2025-03-01 22:11:14 +01:00
2025-06-19 07:38:01 +08:00
2025-06-16 23:04:33 +00:00
2025-06-18 18:39:25 +08:00
2025-06-18 18:39:25 +08:00
2025-03-18 20:31:52 +02:00
2024-07-18 09:28:50 -04:00
2024-08-10 18:06:10 +00:00
2025-06-12 15:10:12 +02:00
2025-06-12 15:10:12 +02:00
2025-06-16 23:04:33 +00:00
2025-06-16 23:04:33 +00:00
2025-06-12 15:10:12 +02:00
2025-06-12 15:10:12 +02:00
2024-12-28 11:58:32 +08:00
2025-05-09 19:54:43 +08:00
2024-07-23 10:31:21 -04:00
2024-07-23 10:31:21 -04:00
2025-04-22 22:55:19 -04:00
2024-08-10 18:06:10 +00:00
2025-05-29 22:06:02 +02:00
2024-07-19 12:27:47 -04:00
2024-07-19 12:27:47 -04:00
2024-09-22 19:11:29 -04:00
2024-09-22 19:11:29 -04:00
2024-07-17 13:34:18 +00:00
2024-08-05 10:39:17 -04:00
2024-07-09 14:30:57 -04:00
2025-06-12 15:10:12 +02:00
2024-09-05 08:43:38 +00:00
2024-09-05 08:43:38 +00:00
2024-09-05 08:43:38 +00:00
2024-09-24 19:04:51 +08:00
2025-06-12 15:10:12 +02:00
2025-06-12 15:10:12 +02:00
2024-07-25 11:08:07 -04:00
2024-08-10 18:06:10 +00:00
2024-09-22 19:11:29 -04:00
2025-02-26 13:07:12 +01:00
2024-07-17 13:34:18 +00:00
2025-06-12 15:10:12 +02:00
2025-03-11 09:46:34 -07:00
2025-05-16 16:14:24 +02:00
2025-06-10 23:31:05 +08:00
2025-06-19 07:38:01 +08:00
2025-04-12 15:09:06 +08:00
2024-07-29 08:26:52 +10:00
2025-05-24 23:31:07 +02:00
2024-12-07 18:18:08 +00:00
2025-04-16 17:42:39 +00:00
2025-04-12 15:09:06 +08:00
2025-06-12 15:10:12 +02:00
2024-10-24 16:49:12 +01:00
2024-10-09 20:58:27 +11:00
2025-06-16 23:04:33 +00:00
2025-06-12 15:10:12 +02:00
2025-06-12 15:10:12 +02:00
2025-06-12 15:10:12 +02:00
2025-06-12 15:10:12 +02:00
2024-08-15 15:44:29 +02:00
2025-06-12 15:10:12 +02:00
2025-04-07 20:48:40 +00:00
2025-03-24 11:33:56 +01:00
2025-05-22 20:12:50 +02:00
2025-06-19 07:38:01 +08:00
2025-06-19 07:38:01 +08:00
2024-08-29 10:15:17 -04:00
2025-06-17 10:49:28 +08:00
2025-06-12 15:10:12 +02:00
2025-06-12 15:10:12 +02:00
2024-07-17 13:34:18 +00:00
2024-09-27 15:53:26 -07:00
2025-06-19 07:38:01 +08:00
2025-06-19 07:38:01 +08:00
2025-06-12 15:10:12 +02:00
2025-06-12 15:10:12 +02:00
2025-06-19 07:38:01 +08:00
2025-06-19 07:38:01 +08:00
2025-06-12 15:10:12 +02:00
2025-06-19 07:38:01 +08:00
2025-06-12 15:10:12 +02:00
2025-06-19 07:38:01 +08:00
2025-06-19 07:38:01 +08:00
2025-06-19 07:38:01 +08:00
2025-06-19 07:38:01 +08:00
2024-08-10 18:06:10 +00:00
2025-06-19 07:38:01 +08:00
2024-07-17 13:34:18 +00:00
2025-06-12 15:10:12 +02:00
2024-09-22 19:11:29 -04:00
2024-07-19 12:27:47 -04:00
2024-07-17 15:33:17 -04:00
2025-01-15 01:05:16 +08:00
2024-07-17 15:33:06 -04:00
2024-12-17 14:33:10 -08:00
2024-07-17 15:33:05 -04:00
2024-07-17 15:33:07 -04:00
2024-07-19 12:27:47 -04:00
2025-06-19 07:38:01 +08:00
2025-06-19 07:38:01 +08:00
2025-04-12 15:09:06 +08:00
2025-01-21 06:59:15 -07:00
2024-08-02 10:06:20 -04:00
2024-09-22 19:11:29 -04:00
2024-07-26 10:17:39 -04:00
2025-01-22 17:22:39 +01:00
2025-06-19 07:38:01 +08:00
2025-06-12 15:10:12 +02:00
2024-12-23 09:40:38 +00:00
2024-07-17 13:34:18 +00:00
2025-06-19 07:38:01 +08:00
2025-06-12 15:10:12 +02:00
2024-12-23 20:23:57 +08:00
2025-06-10 23:31:05 +08:00
2025-06-19 07:38:01 +08:00
2025-06-19 07:38:01 +08:00
2025-06-12 15:10:12 +02:00
2024-07-17 13:34:18 +00:00
2025-06-12 15:10:12 +02:00
2024-07-25 11:08:07 -04:00
2025-06-19 07:38:01 +08:00
2024-07-29 08:26:52 +10:00
2025-06-19 07:38:01 +08:00
2025-06-12 15:10:12 +02:00
2025-06-12 15:10:12 +02:00
2025-06-12 15:10:12 +02:00
2024-10-22 19:43:22 +08:00
2025-06-12 15:10:12 +02:00
2025-06-19 07:38:01 +08:00
2025-01-22 12:26:50 +08:00
2025-06-19 07:38:01 +08:00
2025-06-12 15:10:12 +02:00
2025-02-07 01:41:54 +08:00
2024-12-23 09:40:25 +00:00
2025-01-01 15:58:29 +01:00
2025-01-01 15:58:29 +01:00
2024-12-23 09:40:25 +00:00
2025-06-12 15:10:12 +02:00
2025-06-19 07:38:01 +08:00
2024-07-29 14:33:54 -04:00
2025-06-19 07:38:01 +08:00
2024-07-30 14:44:14 -04:00
2024-07-22 23:21:59 +02:00
2024-07-23 11:47:11 +02:00
2024-07-18 16:27:34 -04:00
2024-10-27 21:23:28 -04:00
2024-07-19 12:27:47 -04:00
2025-06-19 07:38:01 +08:00
2024-09-05 08:43:38 +00:00
2025-05-15 11:33:28 -07:00
2025-06-12 15:10:12 +02:00
2024-08-06 11:03:18 -04:00
2024-08-06 11:03:18 -04:00
2024-10-10 15:02:47 +01:00
2024-07-29 08:26:52 +10:00
2025-06-12 15:10:12 +02:00
2024-07-22 13:25:39 -04:00
2024-07-19 12:27:47 -04:00
2024-08-10 18:06:10 +00:00
2024-07-18 16:27:34 -04:00
2024-07-18 09:28:30 -04:00
2025-06-12 15:10:12 +02:00
2024-07-18 09:28:30 -04:00
2025-06-12 15:10:12 +02:00
2025-06-12 15:10:12 +02:00
2025-06-12 15:10:12 +02:00
2025-06-16 23:04:33 +00:00
2025-06-12 15:10:12 +02:00
2024-12-23 09:40:25 +00:00
2024-07-17 13:34:18 +00:00
2025-06-19 07:38:01 +08:00
2024-09-22 11:40:00 +02:00
2024-08-19 18:26:55 +00:00
2025-06-18 18:39:25 +08:00
2025-06-12 15:10:12 +02:00
2025-03-10 21:26:45 -04:00
2025-06-19 07:38:01 +08:00
2025-06-19 07:38:01 +08:00
2024-07-19 12:27:46 -04:00
2024-08-15 10:17:38 -04:00
2025-06-19 07:38:01 +08:00
2025-06-12 15:10:12 +02:00
2024-07-26 12:07:33 -04:00
2025-06-16 10:54:07 -07:00
2025-06-19 07:38:01 +08:00
2025-06-19 07:38:01 +08:00
2024-08-04 02:57:18 +00:00
2024-07-29 08:26:52 +10:00
2025-06-12 15:10:12 +02:00
2025-06-19 07:38:01 +08:00
2025-06-12 15:10:12 +02:00
2024-07-29 08:26:52 +10:00
2025-06-12 15:10:12 +02:00
2024-10-09 20:58:27 +11:00
2024-07-17 13:34:18 +00:00
2024-07-17 13:34:18 +00:00
2025-04-12 15:09:06 +08:00
2025-06-12 15:10:12 +02:00
2024-07-25 11:17:34 -04:00
2025-06-12 15:10:12 +02:00
2025-06-12 15:10:12 +02:00
2024-07-05 12:47:19 -04:00
2025-06-12 15:10:12 +02:00
2024-07-19 12:27:47 -04:00
2024-09-10 17:23:05 +02:00
2024-09-10 17:23:05 +02:00
2024-10-09 20:58:27 +11:00
2025-02-23 21:23:36 +08:00
2024-10-09 20:58:27 +11:00
2024-10-09 20:58:27 +11:00
2025-06-12 15:10:12 +02:00
2024-10-09 20:58:27 +11:00
2024-10-09 20:58:27 +11:00
2025-05-07 10:52:18 -07:00
2024-11-15 14:13:38 +00:00
2024-07-17 13:34:18 +00:00
2024-07-17 13:34:18 +00:00
2025-06-12 15:10:12 +02:00
2024-08-26 18:20:32 +08:00
2024-08-10 18:06:10 +00:00
2025-04-01 18:29:39 +02:00
2024-08-10 18:06:10 +00:00
2025-04-17 22:02:31 +08:00
2024-11-02 23:39:29 +11:00
2024-08-26 18:20:32 +08:00
2024-08-26 18:20:32 +08:00
2025-06-19 07:38:01 +08:00
2024-07-16 15:34:04 -04:00
2024-08-05 10:11:53 -04:00
2024-08-05 10:11:53 -04:00
2025-06-16 23:04:33 +00:00
2024-07-12 16:41:28 -04:00
2025-02-26 19:09:51 +01:00
2025-02-26 19:09:51 +01:00
2025-02-26 19:09:51 +01:00
2024-07-29 10:58:28 -04:00
2024-07-12 16:41:28 -04:00
2024-07-29 10:58:28 -04:00
2024-07-29 10:58:28 -04:00
2024-08-10 18:06:10 +00:00
2025-06-19 07:38:01 +08:00
2025-06-12 15:10:12 +02:00
2025-06-12 15:10:12 +02:00
2024-12-23 09:40:38 +00:00
2025-06-19 07:38:01 +08:00
2025-04-12 15:09:06 +08:00
2025-06-19 07:38:01 +08:00
2024-08-29 10:15:17 -04:00
2025-06-12 15:10:12 +02:00
2024-07-19 12:27:26 -04:00
2024-07-17 13:34:18 +00:00
2024-08-15 10:17:38 -04:00
2025-06-19 07:38:01 +08:00
2024-08-10 18:06:10 +00:00
2024-07-04 10:05:56 -04:00
2024-08-10 18:06:10 +00:00
2025-04-03 15:41:38 +02:00
2025-04-03 15:40:23 +02:00
2025-04-03 15:40:23 +02:00
2025-04-03 15:40:23 +02:00
2024-10-23 19:01:38 +08:00
2025-02-16 16:18:30 -05:00
2025-04-24 12:54:40 +08:00
2025-06-19 07:38:01 +08:00
2024-07-18 11:14:07 -04:00
2025-06-19 07:38:01 +08:00
2025-06-19 07:38:01 +08:00
2025-06-19 07:38:01 +08:00
2025-06-19 07:38:01 +08:00
2025-06-19 07:38:01 +08:00
2025-06-19 07:38:01 +08:00
2025-06-19 07:38:01 +08:00
2025-06-19 07:38:01 +08:00
2025-06-12 15:10:12 +02:00
2025-02-27 13:22:16 +00:00
2025-06-12 15:10:12 +02:00
2025-06-12 15:10:12 +02:00
2025-06-12 15:10:12 +02:00
2025-06-12 15:10:12 +02:00
2025-06-12 15:10:12 +02:00
2024-09-22 19:11:29 -04:00
2024-08-15 15:44:29 +02:00
2025-05-08 15:24:05 +02:00
2025-06-19 07:38:01 +08:00
2025-06-19 07:38:01 +08:00
2025-06-19 07:38:01 +08:00
2025-06-19 07:38:01 +08:00
2025-06-19 07:38:01 +08:00
2025-06-12 15:10:12 +02:00
2024-07-23 10:26:35 -04:00
2025-05-15 16:54:27 +08:00
2024-07-26 11:45:19 -04:00
2024-09-05 08:43:38 +00:00
2025-06-19 07:38:01 +08:00
2025-06-12 15:10:12 +02:00
2024-07-17 13:34:18 +00:00
2025-06-16 23:04:33 +00:00
2025-02-01 16:14:58 +08:00
2025-06-12 15:10:12 +02:00
2024-07-26 11:45:19 -04:00
2024-07-17 15:33:07 -04:00
2025-06-18 18:39:25 +08:00
2025-06-12 15:10:12 +02:00
2025-06-12 15:10:12 +02:00
2024-08-08 12:17:15 +00:00
2025-06-19 07:38:01 +08:00
2024-07-08 09:59:08 -04:00
2025-06-19 07:38:01 +08:00
2025-06-19 07:38:01 +08:00
2025-04-12 15:09:06 +08:00
2024-07-29 08:26:52 +10:00
2025-01-31 04:30:51 +00:00
2025-06-19 07:38:01 +08:00
2025-06-16 10:54:07 -07:00
2025-06-12 15:10:12 +02:00
2024-09-16 21:31:41 +08:00
2024-09-16 21:31:41 +08:00
2024-09-16 21:31:41 +08:00
2025-06-18 18:39:25 +08:00
2025-03-24 11:33:56 +01:00
2025-06-16 23:04:33 +00:00
2024-08-26 18:20:32 +08:00
2024-07-19 16:48:21 -04:00
2024-07-02 11:37:59 -04:00
2024-09-24 19:04:51 +08:00
2024-11-30 16:29:49 +08:00
2025-06-19 07:38:01 +08:00
2024-10-09 20:58:27 +11:00
2025-01-29 08:11:01 +00:00
2025-06-12 15:10:12 +02:00
2025-06-12 15:10:12 +02:00
2025-06-17 10:53:11 +08:00
2025-06-17 10:53:11 +08:00
2024-07-17 16:11:11 -04:00
2025-06-12 15:10:12 +02:00
2025-06-19 07:38:01 +08:00
2025-05-27 11:12:15 +02:00
2025-03-01 22:11:02 +01:00
2024-07-29 08:26:52 +10:00
2024-07-29 08:26:52 +10:00
2024-07-29 08:26:52 +10:00
2025-02-08 22:12:13 +00:00
2024-07-29 08:26:52 +10:00
2024-08-02 11:54:20 -04:00
2024-07-19 10:27:14 -07:00
2024-07-29 08:26:52 +10:00
2024-07-19 10:27:14 -07:00
2024-07-29 08:26:52 +10:00
2024-07-29 08:26:52 +10:00
2024-07-29 08:26:52 +10:00
2024-07-29 08:26:52 +10:00
2024-07-29 08:26:52 +10:00
2024-07-29 08:26:52 +10:00
2024-09-05 08:43:38 +00:00
2024-08-04 02:57:17 +00:00
2025-03-02 05:56:56 +08:00