Commit aa6d15d
committed
Better error diagnostics on targets without std.
Provides a warning if a docker command fails and `rust-std` is not
installed for the target. For example, for `x86_64-unknown-dragonfly`,
the added output would be:
```bash
[cross] warning: rust-std is not installed for x86_64-unknown-dragonfly
[cross] note: you may need to build components for the std library `-Z build-std=<components>`
the available components are core, std, alloc, and proc_macro
if no components are provided, cargo will build all components
```
This is done solely if the command fails and if the target is a built-in, so we don't get misleading warnings for custom targets, and there is no overhead if the build succeeds.1 parent 00c1de2 commit aa6d15d
1 file changed
+17
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
360 | 360 | | |
361 | 361 | | |
362 | 362 | | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
363 | 377 | | |
364 | 378 | | |
365 | 379 | | |
| |||
524 | 538 | | |
525 | 539 | | |
526 | 540 | | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
527 | 544 | | |
528 | 545 | | |
529 | 546 | | |
| |||
0 commit comments