authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-09-22 01:33:21+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-09-24 01:11:27+02:00
logd6d1fefae91b50cebd73501ff657709a945228f8
tree7c2753f4ce9e7fe0766826de3e225cfda4cb573a
parenta569c7d66433c46efe8a36ee5191b033c98faeab
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

test: disable test-link on FreeBSD

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

1 files changed, 4 insertions(+), 0 deletions(-)

test/link/elf.zig+4
...@@ -2,6 +2,9 @@ pub fn testAll(b: *Build, build_opts: BuildOptions) *Step {...@@ -2,6 +2,9 @@ pub fn testAll(b: *Build, build_opts: BuildOptions) *Step {
2 _ = build_opts;2 _ = build_opts;
3 const elf_step = b.step("test-elf", "Run ELF tests");3 const elf_step = b.step("test-elf", "Run ELF tests");
44
5 // https://github.com/ziglang/zig/issues/25323
6 if (builtin.os.tag == .freebsd) return elf_step;
7
5 const default_target = b.resolveTargetQuery(.{8 const default_target = b.resolveTargetQuery(.{
6 .cpu_arch = .x86_64, // TODO relax this once ELF linker is able to handle other archs9 .cpu_arch = .x86_64, // TODO relax this once ELF linker is able to handle other archs
7 .os_tag = .linux,10 .os_tag = .linux,
...@@ -4285,6 +4288,7 @@ const addStaticLibrary = link.addStaticLibrary;...@@ -4285,6 +4288,7 @@ const addStaticLibrary = link.addStaticLibrary;
4285const expectLinkErrors = link.expectLinkErrors;4288const expectLinkErrors = link.expectLinkErrors;
4286const link = @import("link.zig");4289const link = @import("link.zig");
4287const std = @import("std");4290const std = @import("std");
4291const builtin = @import("builtin");
42884292
4289const Build = std.Build;4293const Build = std.Build;
4290const BuildOptions = link.BuildOptions;4294const BuildOptions = link.BuildOptions;