mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 02:44:43 +01: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
2 changed files with 20 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue