diff options
| author | Trevor Gross <tmgross@umich.edu> | 2025-04-26 05:37:52 +0000 |
|---|---|---|
| committer | Trevor Gross <tmgross@umich.edu> | 2025-04-27 20:10:33 +0000 |
| commit | dfa972e4548d7719d50540af9661c42dd9085b30 (patch) | |
| tree | d6043a734945457712693411691a1b77a38b7039 /library/std/Cargo.toml | |
| parent | 6ceeb0849e181999fc6ecc2cb9dcfdc65b5effd3 (diff) | |
| download | rust-dfa972e4548d7719d50540af9661c42dd9085b30.tar.gz rust-dfa972e4548d7719d50540af9661c42dd9085b30.zip | |
Use `feature(target_has_reliable_f16_f128)` in library tests
New compiler configuration has been introduced that is designed to replace the build script configuration `reliable_f16`, `reliable_f128`, `reliable_f16_math`, and `reliable_f128_math`. Do this replacement here, which allows us to clean up `std`'s build script. All tests are gated by `#[cfg(bootstrap)]` rather than doing a more complicated `cfg(bootstrap)` / `cfg(not(bootstrap))` split since the next beta split is within two weeks.
Diffstat (limited to 'library/std/Cargo.toml')
| -rw-r--r-- | library/std/Cargo.toml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/library/std/Cargo.toml b/library/std/Cargo.toml index 3536e84d58b..7b8f2dd46d6 100644 --- a/library/std/Cargo.toml +++ b/library/std/Cargo.toml @@ -163,4 +163,10 @@ check-cfg = [ # and to the `backtrace` crate which messes-up with Cargo list # of declared features, we therefor expect any feature cfg 'cfg(feature, values(any()))', + # Internal features aren't marked known config by default, we use these to + # gate tests. + 'cfg(target_has_reliable_f16)', + 'cfg(target_has_reliable_f16_math)', + 'cfg(target_has_reliable_f128)', + 'cfg(target_has_reliable_f128_math)', ] |
