zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit b2d2b441b2cbf15a01ca386b0df5c2103c1be24b (tree)
parent f7d62009ff756a3c9cc79dbad88f51e44d1b4352
Author: alexrp <alex@alexrp.com>
Date:   Mon, 22 Sep 2025 01:33:21 +0200

test: disable test-link on FreeBSD

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

Diffstat:
Mtest/link/elf.zig | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/test/link/elf.zig b/test/link/elf.zig @@ -2,6 +2,9 @@ pub fn testAll(b: *Build, build_opts: BuildOptions) *Step { _ = build_opts; const elf_step = b.step("test-elf", "Run ELF tests"); + // https://github.com/ziglang/zig/issues/25323 + if (builtin.os.tag == .freebsd) 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, @@ -4285,6 +4288,7 @@ const addStaticLibrary = link.addStaticLibrary; const expectLinkErrors = link.expectLinkErrors; const link = @import("link.zig"); const std = @import("std"); +const builtin = @import("builtin"); const Build = std.Build; const BuildOptions = link.BuildOptions;