@@ -19,19 +19,19 @@ fn main() {
19
19
if target. starts_with ( "arm-" )
20
20
|| target. contains ( "apple-darwin" )
21
21
|| target. contains ( "windows-msvc" )
22
- // GCC and LLVM disagree on the ABI of `f16` and `f128` with MinGW. See
23
- // <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115054>.
24
- || target. contains ( "windows-gnu" )
25
- // FIXME(llvm): There is an ABI incompatibility between GCC and Clang on 32-bit x86.
26
- // See <https://github.com/llvm/llvm-project/issues/77401>.
27
- || target. starts_with ( "i686" )
28
- // 32-bit PowerPC and 64-bit LE gets code generated that Qemu cannot handle. See
29
- // <https://github.com/rust-lang/compiler-builtins/pull/606#issuecomment-2105635926>.
30
- || target. starts_with ( "powerpc-" )
31
- || target. starts_with ( "powerpc64le-" )
32
- // FIXME: We get different results from the builtin functions. See
33
- // <https://github.com/rust-lang/compiler-builtins/pull/606#issuecomment-2105657287>.
34
- || target. starts_with ( "powerpc64-" )
22
+ // // GCC and LLVM disagree on the ABI of `f16` and `f128` with MinGW. See
23
+ // // <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115054>.
24
+ // || target.contains("windows-gnu")
25
+ // // FIXME(llvm): There is an ABI incompatibility between GCC and Clang on 32-bit x86.
26
+ // // See <https://github.com/llvm/llvm-project/issues/77401>.
27
+ // || target.starts_with("i686")
28
+ // // 32-bit PowerPC and 64-bit LE gets code generated that Qemu cannot handle. See
29
+ // // <https://github.com/rust-lang/compiler-builtins/pull/606#issuecomment-2105635926>.
30
+ // || target.starts_with("powerpc-")
31
+ // || target.starts_with("powerpc64le-")
32
+ // // FIXME: We get different results from the builtin functions. See
33
+ // // <https://github.com/rust-lang/compiler-builtins/pull/606#issuecomment-2105657287>.
34
+ // || target.starts_with("powerpc64-")
35
35
{
36
36
features. insert ( Feature :: NoSysF128 ) ;
37
37
features. insert ( Feature :: NoSysF128IntConvert ) ;
@@ -43,16 +43,16 @@ fn main() {
43
43
features. insert ( Feature :: NoSysF128IntConvert ) ;
44
44
}
45
45
46
- if target. contains ( "-unknown-linux-" ) {
47
- // No `__extendhftf2` on x86, no `__trunctfhf2` on aarch64
48
- features. insert ( Feature :: NoSysF16F128Convert ) ;
49
- }
46
+ // if target.contains("-unknown-linux-") {
47
+ // // No `__extendhftf2` on x86, no `__trunctfhf2` on aarch64
48
+ // features.insert(Feature::NoSysF16F128Convert);
49
+ // }
50
50
51
- if target. starts_with ( "wasm32-" ) {
52
- // Linking says "error: function signature mismatch: __extendhfsf2" and seems to
53
- // think the signature is either `(i32) -> f32` or `(f32) -> f32`
54
- features. insert ( Feature :: NoSysF16 ) ;
55
- }
51
+ // if target.starts_with("wasm32-") {
52
+ // // Linking says "error: function signature mismatch: __extendhfsf2" and seems to
53
+ // // think the signature is either `(i32) -> f32` or `(f32) -> f32`
54
+ // features.insert(Feature::NoSysF16);
55
+ // }
56
56
57
57
for feature in features {
58
58
let ( name, warning) = match feature {
@@ -67,7 +67,7 @@ fn main() {
67
67
) ,
68
68
Feature :: NoSysF16 => ( "no-sys-f16" , "using apfloat fallback for f16" ) ,
69
69
} ;
70
- // println!("cargo:warning={warning}");
71
- // println!("cargo:rustc-cfg=feature=\"{name}\"");
70
+ println ! ( "cargo:warning={warning}" ) ;
71
+ println ! ( "cargo:rustc-cfg=feature=\" {name}\" " ) ;
72
72
}
73
73
}
0 commit comments