mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-03 10:47:16 +00:00

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.
11 lines
260 B
Rust
11 lines
260 B
Rust
mod builtins_configure {
|
|
include!("../compiler-builtins/configure.rs");
|
|
}
|
|
|
|
fn main() {
|
|
println!("cargo::rerun-if-changed=../configure.rs");
|
|
|
|
let target = builtins_configure::Target::from_env();
|
|
builtins_configure::configure_aliases(&target);
|
|
}
|