File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ libm = { version = "0.2.0", optional = true }
23
23
default = [" std" ]
24
24
std = []
25
25
i128 = []
26
- copysign = []
27
26
28
27
[build-dependencies ]
29
28
autocfg = " 1"
Original file line number Diff line number Diff line change @@ -11,10 +11,6 @@ fn main() {
11
11
autocfg:: emit ( "has_i128" ) ;
12
12
}
13
13
14
- if env:: var_os ( "CARGO_FEATURE_COPYSIGN" ) . is_some ( ) || ac. probe_expression ( "f32::copysign" ) {
15
- autocfg:: emit ( "has_copysign" ) ;
16
- }
17
-
18
14
ac. emit_expression_cfg (
19
15
"unsafe { 1f64.to_int_unchecked::<i32>() }" ,
20
16
"has_to_int_unchecked" ,
@@ -25,5 +21,9 @@ fn main() {
25
21
ac. emit_expression_cfg ( "{ let mut x = 1; x += &2; }" , "has_int_assignop_ref" ) ;
26
22
ac. emit_expression_cfg ( "1u32.div_euclid(1u32)" , "has_div_euclid" ) ;
27
23
24
+ if env:: var_os ( "CARGO_FEATURE_STD" ) . is_some ( ) {
25
+ ac. emit_expression_cfg ( "1f64.copysign(-1f64)" , "has_copysign" ) ;
26
+ }
27
+
28
28
autocfg:: rerun_path ( "build.rs" ) ;
29
29
}
You can’t perform that action at this time.
0 commit comments