rust/library/compiler-builtins/builtins-test
Trevor Gross be35d37d8b
Use the compiler to determine whether or not to enable f16 and f128
Currently we whether or not to build and test `f16` and `f128` support
mostly based on the target triple. This isn't always accurate, however,
since support also varies by backend and the backend version.

Since recently, `rustc` is aware of this with the unstable config option
`target_has_reliable_{f16,f128}`, which better represents when the types
are actually expected to be available and usable. Switch our
compiler-builtins and libm configuration to use this by probing `rustc`
for the target's settings.

A few small `cfg` fixes are needed with this.
2025-07-02 01:18:54 -05:00
..
benches Use the compiler to determine whether or not to enable f16 and f128 2025-07-02 01:18:54 -05:00
src cleanup: Reuse MinInt and Int from libm in compiler-builtins 2025-05-29 03:04:59 +00:00
tests Use the compiler to determine whether or not to enable f16 and f128 2025-07-02 01:18:54 -05:00
build.rs Use the compiler to determine whether or not to enable f16 and f128 2025-07-02 01:18:54 -05:00
Cargo.toml Work around out-of-tree testing with a shim crate 2025-06-14 06:56:18 +00:00