Merge pull request #22115 from alexrp/x32-tests

`test`: Add `x86_64-linux-(gnux32,muslx32)` to module tests.
This commit is contained in:
Alex Rønne Petersen 2024-12-01 13:43:16 +01:00 committed by GitHub
commit 5c6b25d9bb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 20 additions and 1 deletions

View File

@ -2451,7 +2451,10 @@ pub fn fadvise(fd: fd_t, offset: i64, len: i64, advice: usize) usize {
const length_halves = splitValue64(len);
return syscall6(
.fadvise64_64,
switch (builtin.abi) {
.gnuabin32, .gnux32, .muslabin32, .muslx32 => .fadvise64,
else => .fadvise64_64,
},
@as(usize, @bitCast(@as(isize, fd))),
offset_halves[0],
offset_halves[1],

View File

@ -217,6 +217,14 @@ const test_targets = blk: {
},
.link_libc = true,
},
.{
.target = .{
.cpu_arch = .x86_64,
.os_tag = .linux,
.abi = .gnux32,
},
.link_libc = true,
},
.{
.target = .{
.cpu_arch = .x86_64,
@ -225,6 +233,14 @@ const test_targets = blk: {
},
.link_libc = true,
},
.{
.target = .{
.cpu_arch = .x86_64,
.os_tag = .linux,
.abi = .muslx32,
},
.link_libc = true,
},
.{
.target = .{
.cpu_arch = .x86_64,