Skip to content

Commit bdef404

Browse files
authored
Merge pull request #4099 from tgross35/sync-build
[0.2] Sync `libc-test/build.rs` with `main` where possible
2 parents ab722fb + 00a39b7 commit bdef404

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

libc-test/build.rs

+8-6
Original file line numberDiff line numberDiff line change
@@ -3567,8 +3567,7 @@ fn test_linux(target: &str) {
35673567
// Include linux headers at the end:
35683568
headers! {
35693569
cfg:
3570-
[loongarch64]: "asm/hwcap.h",
3571-
[riscv64]: "asm/hwcap.h",
3570+
[loongarch64 || riscv64]: "asm/hwcap.h",
35723571
"asm/mman.h",
35733572
[gnu]: "linux/aio_abi.h",
35743573
"linux/can.h",
@@ -3767,17 +3766,19 @@ fn test_linux(target: &str) {
37673766
if musl && (ty.ends_with("64") || ty.ends_with("64_t")) {
37683767
return true;
37693768
}
3769+
37703770
// FIXME: sparc64 CI has old headers
37713771
if sparc64 && (ty == "uinput_ff_erase" || ty == "uinput_abs_setup") {
37723772
return true;
37733773
}
3774-
// FIXME(https://github.com/rust-lang/libc/issues/1558): passing by
3775-
// value corrupts the value for reasons not understood.
3774+
3775+
// FIXME(#1558): passing by value corrupts the value for reasons not understood.
37763776
if (gnu && sparc64) && (ty == "ip_mreqn" || ty == "hwtstamp_config") {
37773777
return true;
37783778
}
3779-
// FIXME(https://github.com/rust-lang/rust/issues/43894): pass by value for structs that are not an even 32/64 bits on
3780-
// big-endian systems corrupts the value for unknown reasons.
3779+
3780+
// FIXME(rust-lang/rust#43894): pass by value for structs that are not an even 32/64 bits
3781+
// on big-endian systems corrupts the value for unknown reasons.
37813782
if (sparc64 || ppc || ppc64 || s390x)
37823783
&& (ty == "sockaddr_pkt"
37833784
|| ty == "tpacket_auxdata"
@@ -3788,6 +3789,7 @@ fn test_linux(target: &str) {
37883789
{
37893790
return true;
37903791
}
3792+
37913793
// FIXME: musl doesn't compile with `struct fanout_args` for unknown reasons.
37923794
if musl && ty == "fanout_args" {
37933795
return true;

0 commit comments

Comments
 (0)