From ec568b4c8520eba1e84f1a8abc541d35506c4c6c Mon Sep 17 00:00:00 2001 From: Jeremie Fraeys Date: Sat, 21 Feb 2026 21:19:09 -0500 Subject: [PATCH] fix(build): link libc for Zig tests using C imports --- cli/build.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/cli/build.zig b/cli/build.zig index 171ab4b..ae275e8 100644 --- a/cli/build.zig +++ b/cli/build.zig @@ -206,6 +206,7 @@ pub fn build(b: *std.Build) void { const test_exe = b.addTest(.{ .root_module = test_module, }); + test_exe.linkLibC(); const run_test = b.addRunArtifact(test_exe); test_step.dependOn(&run_test.step);