File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,8 @@ impl Config {
35
35
36
36
let target_arch = env:: var ( "CARGO_CFG_TARGET_ARCH" ) . unwrap ( ) ;
37
37
// 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" ;
39
40
40
41
Self {
41
42
target_triple,
@@ -52,8 +53,8 @@ impl Config {
52
53
target_features,
53
54
// Note that these are unstable options, so only show up with the nightly compiler or
54
55
// 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 ,
57
58
reliable_f128 : env:: var_os ( "CARGO_CFG_TARGET_HAS_RELIABLE_F128" ) . is_some ( )
58
59
&& !bootstrapping_f128,
59
60
}
You can’t perform that action at this time.
0 commit comments