File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -521,13 +521,16 @@ fn target_config(sess: &Session, target_info: &LockedTargetInfo) -> TargetConfig
521
521
let target_features = f ( false ) ;
522
522
let unstable_target_features = f ( true ) ;
523
523
524
+ let has_reliable_f16 = target_info. supports_target_dependent_type ( CType :: Float16 ) ;
525
+ let has_reliable_f128 = target_info. supports_target_dependent_type ( CType :: Float128 ) ;
526
+
524
527
TargetConfig {
525
528
target_features,
526
529
unstable_target_features,
527
530
// There are no known bugs with GCC support for f16 or f128
528
- has_reliable_f16 : true ,
529
- has_reliable_f16_math : true ,
530
- has_reliable_f128 : true ,
531
- has_reliable_f128_math : true ,
531
+ has_reliable_f16,
532
+ has_reliable_f16_math : has_reliable_f16 ,
533
+ has_reliable_f128,
534
+ has_reliable_f128_math : has_reliable_f128 ,
532
535
}
533
536
}
You can’t perform that action at this time.
0 commit comments