mirror of
https://github.com/ziglang/zig.git
synced 2026-01-09 08:55:36 +00:00
Merge pull request #22115 from alexrp/x32-tests
`test`: Add `x86_64-linux-(gnux32,muslx32)` to module tests.
This commit is contained in:
commit
5c6b25d9bb
@ -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],
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user