Skip to content

Commit 220ca5d

Browse files
committed
fix(build): drop link_libc from inline test targets
The inline-test targets added in the previous commit set link_libc=true, which on a glibc (gnu-ABI) Linux target emits PT_INTERP=/lib64/ld-linux-x86-64.so.2. That FHS loader path does not exist in the Nix build sandbox, so 'zig build test' could not exec the freshly-built test binaries and the Garnix ci-linux-x86_64 check failed (GitHub Actions passed because its runners are real FHS systems). The crc32jam/rle8182/lzh leaf modules import only std and need no libc, so removing link_libc makes the test binaries statically linked (no PT_INTERP), matching the existing zig_unit_tests target that already builds cleanly in the sandbox. Verified: gnu-target test binary now has no PT_INTERP.
1 parent d4c90c8 commit 220ca5d

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

build.zig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ pub fn build(b: *std.Build) void {
7676
.root_source_file = b.path(src_path),
7777
.target = target,
7878
.optimize = optimize,
79-
.link_libc = true,
8079
}),
8180
});
8281
test_step.dependOn(&b.addRunArtifact(mod_tests).step);

0 commit comments

Comments
 (0)