rust/library/std
Lawrence Tang 1ecb08409d 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.
2024-02-05 10:20:42 +00:00
..
benches
src Auto merge of #117958 - risc0:erik/target-triple, r=davidtwco,Mark-Simulacrum 2024-01-23 09:30:36 +00:00
tests Add test of thread_local containing multiline const block 2024-01-20 19:00:27 -08:00
build.rs Add support for custom JSON targets when using build-std. 2024-02-05 10:20:42 +00:00
Cargo.toml Update compiler_builtins to 0.1.105 2024-01-09 20:30:56 -08:00