Skip to content

Commit

Permalink
test: link libc
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesrocket committed Jun 18, 2024
1 parent abe50db commit 387eae0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 387eae0

Please sign in to comment.