From 387eae047d4ffe2a6481ac14575d1ed80764ca47 Mon Sep 17 00:00:00 2001 From: -k Date: Tue, 18 Jun 2024 16:36:02 -0700 Subject: [PATCH] test: link libc --- build.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/build.zig b/build.zig index 479240e..e612a3c 100644 --- a/build.zig +++ b/build.zig @@ -36,6 +36,7 @@ pub fn build(b: *std.Build) void { unit_tests.addIncludePath(b.dependency("termbox2", .{}).path(".")); unit_tests.addCSourceFile(.{ .file = b.path("src/termbox_impl.c") }); + unit_tests.linkLibC(); const run_unit_tests = b.addRunArtifact(unit_tests); const test_step = b.step("test", "Run all tests");