Skip to content

Commit 1a527ee

Browse files
committed
Ensure std is enabled in autocfg for round_ties_even probe
1 parent e9b9cdc commit 1a527ee

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

build.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ fn main() {
44

55
ac.emit_expression_cfg("1f64.total_cmp(&2f64)", "has_total_cmp"); // 1.62
66
ac.emit_path_cfg("core::num::Saturating", "has_num_saturating"); // 1.74
7+
8+
// round_ties_even is only available in `std`
9+
ac.set_no_std(false);
710
ac.emit_expression_cfg("1.5f64.round_ties_even()", "has_round_ties_even"); // 1.77
811

912
autocfg::rerun_path("build.rs");

0 commit comments

Comments
 (0)