summaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig6
1 files changed, 6 insertions, 0 deletions
diff --git a/build.zig b/build.zig
index f648d85..f5eb0e4 100644
--- a/build.zig
+++ b/build.zig
@@ -14,6 +14,12 @@ pub fn build(b: *std.Build) void {
// Add cross-platform terminal support
exe.linkLibC();
+ // Add C source file for statvfs helper
+ exe.addCSourceFile(.{
+ .file = b.path("src/statvfs_helper.c"),
+ .flags = &.{},
+ });
+
b.installArtifact(exe);
const run_cmd = b.addRunArtifact(exe);