diff options
| author | Lawrence Tang <Lawrence.Tang@arm.com> | 2024-01-22 11:33:02 +0000 |
|---|---|---|
| committer | Lawrence Tang <Lawrence.Tang@arm.com> | 2024-02-05 10:20:42 +0000 |
| commit | 1ecb08409d17f08a2a52013b99fd969018e404dd (patch) | |
| tree | 55d6034ad0e6576e25a8b2227ad80337c848fc58 /compiler/rustc_pattern_analysis/src | |
| parent | 0e4243538b9119654c22dce688f8a63c81864de9 (diff) | |
| download | rust-1ecb08409d17f08a2a52013b99fd969018e404dd.tar.gz rust-1ecb08409d17f08a2a52013b99fd969018e404dd.zip | |
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/#60.
Diffstat (limited to 'compiler/rustc_pattern_analysis/src')
0 files changed, 0 insertions, 0 deletions
