diff options
author | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2025-08-24 06:33:50 +0200 |
---|---|---|
committer | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2025-08-24 06:33:50 +0200 |
commit | 65bdefaf7a0e0299e2a4361d107a9721eac9dd4e (patch) | |
tree | b605c47cb1ca162b1bd9893784938b43bc343f4c /build.zig | |
parent | 16e6d5386fecba7895aa64c035eabec664472de6 (diff) |
Handle statvfs in C.
This is necessary for musl support because musl's version of struct
statvfs contains bitfields, which Zig does not know how to import.
Diffstat (limited to 'build.zig')
-rw-r--r-- | build.zig | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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); |