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

Add support for custom JSON targets when using build-std. #120232

Merged
merged 1 commit into from
Feb 11, 2024

Commits on Feb 5, 2024

  1. Add support for custom JSON targets when using build-std.

    Currently, when building with `build-std`, some library build scripts
    check properties of the target by inspecting the target triple at
    `env::TARGET`, which is simply set to the filename of the JSON file
    when using JSON target files.
    
    This patch alters these build scripts to use `env::CARGO_CFG_*` to
    fetch target information instead, allowing JSON target files
    describing platforms without `restricted_std` to build correctly when
    using `-Z build-std`.
    
    Fixes wg-cargo-std-aware/rust-lang#60.
    c272 committed Feb 5, 2024
    Configuration menu
    Copy the full SHA
    1ecb084 View commit details
    Browse the repository at this point in the history