Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better error diagnostics on targets without std. #899

Merged
merged 1 commit into from
Jul 3, 2022

Commits on Jul 3, 2022

  1. Better error diagnostics on targets without std.

    Provides a warning if a docker command fails and `rust-std` is not available for the target. For example, for `x86_64-unknown-dragonfly`, the added output would be:
    
    ```bash
    [cross] warning: rust-std is not available for x86_64-unknown-dragonfly
    [cross] note: you may need to build components for the target via `-Z build-std=<components>` or in your cross configuration specify `target.x86_64-unknown-dragonfly.build-std`
                  the available components are core, std, alloc, and proc_macro
    ```
    
    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.
    Alexhuszagh committed Jul 3, 2022
    Configuration menu
    Copy the full SHA
    10b0eb1 View commit details
    Browse the repository at this point in the history