Commit a8e77b7a05

Alex Rønne Petersen <alex@alexrp.com>
2025-11-18 00:25:16
test: disable test-link on big-endian hosts
https://github.com/ziglang/zig/issues/25961
1 parent a0e6d41
Changed files (2)
test/link/elf.zig
@@ -5,6 +5,9 @@ pub fn testAll(b: *Build, build_opts: BuildOptions) *Step {
     // https://github.com/ziglang/zig/issues/25323
     if (builtin.os.tag == .freebsd) return elf_step;
 
+    // https://github.com/ziglang/zig/issues/25961
+    if (comptime builtin.cpu.arch.endian() == .big) return elf_step;
+
     const default_target = b.resolveTargetQuery(.{
         .cpu_arch = .x86_64, // TODO relax this once ELF linker is able to handle other archs
         .os_tag = .linux,
test/link/macho.zig
@@ -6,6 +6,9 @@ pub fn testAll(b: *Build, build_opts: BuildOptions) *Step {
     // https://github.com/ziglang/zig/issues/25323
     if (builtin.os.tag == .freebsd) return macho_step;
 
+    // https://github.com/ziglang/zig/issues/25961
+    if (comptime builtin.cpu.arch.endian() == .big) return macho_step;
+
     const x86_64_target = b.resolveTargetQuery(.{
         .cpu_arch = .x86_64,
         .os_tag = .macos,