Skip to content

Commit 15049e1

Browse files
committed
update
1 parent a71d97e commit 15049e1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

libm/configure.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ impl Config {
3535

3636
let target_arch = env::var("CARGO_CFG_TARGET_ARCH").unwrap();
3737
// Symbols are missing so we can't test until they get to nightly
38-
let bootstrapping_f128 = target_arch == "x86" || target_arch == "s390x";
38+
let bootstrapping_f16 = target_arch == "s390x";
39+
let bootstrapping_f128 = target_arch == "x86";
3940

4041
Self {
4142
target_triple,
@@ -52,8 +53,8 @@ impl Config {
5253
target_features,
5354
// Note that these are unstable options, so only show up with the nightly compiler or
5455
// with `RUSTC_BOOTSTRAP=1` (which is required to use the types anyway).
55-
// reliable_f16: env::var_os("CARGO_CFG_TARGET_HAS_RELIABLE_F16").is_some(),
56-
reliable_f16: true,
56+
reliable_f16: env::var_os("CARGO_CFG_TARGET_HAS_RELIABLE_F16").is_some()
57+
&& !bootstrapping_f16,
5758
reliable_f128: env::var_os("CARGO_CFG_TARGET_HAS_RELIABLE_F128").is_some()
5859
&& !bootstrapping_f128,
5960
}

0 commit comments

Comments
 (0)