authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-11-18 00:25:16+01:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-11-19 01:42:45+01:00
loga8e77b7a059d02bd86d4388b42b8d7b6bef52360
treec1b864bc582d481b8821ed92f851c7e67d702787
parenta0e6d413315e2006bfb11999c7cc4f0a6c272f0e
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

test: disable test-link on big-endian hosts

https://github.com/ziglang/zig/issues/25961

2 files changed, 6 insertions(+), 0 deletions(-)

test/link/elf.zig+3
...@@ -5,6 +5,9 @@ pub fn testAll(b: *Build, build_opts: BuildOptions) *Step {...@@ -5,6 +5,9 @@ pub fn testAll(b: *Build, build_opts: BuildOptions) *Step {
5 // https://github.com/ziglang/zig/issues/253235 // https://github.com/ziglang/zig/issues/25323
6 if (builtin.os.tag == .freebsd) return elf_step;6 if (builtin.os.tag == .freebsd) return elf_step;
77
8 // https://github.com/ziglang/zig/issues/25961
9 if (comptime builtin.cpu.arch.endian() == .big) return elf_step;
10
8 const default_target = b.resolveTargetQuery(.{11 const default_target = b.resolveTargetQuery(.{
9 .cpu_arch = .x86_64, // TODO relax this once ELF linker is able to handle other archs12 .cpu_arch = .x86_64, // TODO relax this once ELF linker is able to handle other archs
10 .os_tag = .linux,13 .os_tag = .linux,
test/link/macho.zig+3
...@@ -6,6 +6,9 @@ pub fn testAll(b: *Build, build_opts: BuildOptions) *Step {...@@ -6,6 +6,9 @@ pub fn testAll(b: *Build, build_opts: BuildOptions) *Step {
6 // https://github.com/ziglang/zig/issues/253236 // https://github.com/ziglang/zig/issues/25323
7 if (builtin.os.tag == .freebsd) return macho_step;7 if (builtin.os.tag == .freebsd) return macho_step;
88
9 // https://github.com/ziglang/zig/issues/25961
10 if (comptime builtin.cpu.arch.endian() == .big) return macho_step;
11
9 const x86_64_target = b.resolveTargetQuery(.{12 const x86_64_target = b.resolveTargetQuery(.{
10 .cpu_arch = .x86_64,13 .cpu_arch = .x86_64,
11 .os_tag = .macos,14 .os_tag = .macos,