Skip to content

Commit 126e6b7

Browse files
committed
fix(build): use root module libc link for tests
1 parent 2e47d59 commit 126e6b7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

build.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pub fn build(b: *std.Build) !void {
2222
.root_module = websocket_module,
2323
.test_runner = .{ .path = b.path("test_runner.zig"), .mode = .simple },
2424
});
25-
tests.linkLibC();
25+
tests.root_module.link_libc = true;
2626
const force_blocking = b.option(bool, "force_blocking", "Force blocking mode") orelse false;
2727
const options = b.addOptions();
2828
options.addOption(bool, "websocket_blocking", force_blocking);

0 commit comments

Comments
 (0)