diff options
| author | bors <bors@rust-lang.org> | 2024-02-11 02:10:17 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-02-11 02:10:17 +0000 |
| commit | 0cbef48150e1fab161b5fd147b57ceb3f9272a52 (patch) | |
| tree | fafef2141d9b4979a00aec7eb861604b0564b97c /compiler/rustc_pattern_analysis/src | |
| parent | 42752cbe095b9ad9941f20f22f80788d95f4ab06 (diff) | |
| parent | 1ecb08409d17f08a2a52013b99fd969018e404dd (diff) | |
| download | rust-0cbef48150e1fab161b5fd147b57ceb3f9272a52.tar.gz rust-0cbef48150e1fab161b5fd147b57ceb3f9272a52.zip | |
Auto merge of #120232 - c272:json-buildstd, r=Mark-Simulacrum
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`. There are some weak assertions here (for example, `nintendo && newlib`), however this seems at least a marginal improvement on the existing solution. Fixes https://github.com/rust-lang/wg-cargo-std-aware/issues/60.
Diffstat (limited to 'compiler/rustc_pattern_analysis/src')
0 files changed, 0 insertions, 0 deletions
