aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--build.zig3
1 files changed, 3 insertions, 0 deletions
diff --git a/build.zig b/build.zig
index 6a0bcb8..ca76dab 100644
--- a/build.zig
+++ b/build.zig
@@ -560,6 +560,9 @@ pub fn build(b: *Build) !void {
}) catch unreachable;
const build_step = b.addExecutable(.{ .name = base_name, .root_source_file = .{ .path = file_path } });
+ if (ex.C) {
+ build_step.linkLibC();
+ }
build_step.install();
const run_step = build_step.run();