Skip to content

Commit 950720a

Browse files
committed
refine test
1 parent fa3e694 commit 950720a

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

testcrate/build.rs

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,19 @@ fn main() {
1919
if target.starts_with("arm-")
2020
|| target.contains("apple-darwin")
2121
|| 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-")
3535
{
3636
features.insert(Feature::NoSysF128);
3737
features.insert(Feature::NoSysF128IntConvert);
@@ -43,16 +43,16 @@ fn main() {
4343
features.insert(Feature::NoSysF128IntConvert);
4444
}
4545

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+
// }
5050

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+
// }
5656

5757
for feature in features {
5858
let (name, warning) = match feature {
@@ -67,7 +67,7 @@ fn main() {
6767
),
6868
Feature::NoSysF16 => ("no-sys-f16", "using apfloat fallback for f16"),
6969
};
70-
// println!("cargo:warning={warning}");
71-
// println!("cargo:rustc-cfg=feature=\"{name}\"");
70+
println!("cargo:warning={warning}");
71+
println!("cargo:rustc-cfg=feature=\"{name}\"");
7272
}
7373
}

0 commit comments

Comments
 (0)