fix: link libc

This commit is contained in:
Nurul Huda (Apon) 2026-01-23 20:26:46 +06:00
parent 86c28da185
commit ea78041e13

View file

@ -9,6 +9,7 @@ pub fn build(b: *std.Build) void {
.target = target,
});
mod.addObjectFile(b.path(getTemporalRsPath(target)));
mod.link_libc = true;
const exe = b.addExecutable(.{
.name = "temporalz",
@ -21,6 +22,7 @@ pub fn build(b: *std.Build) void {
},
}),
});
exe.linkLibC();
b.installArtifact(exe);
// Run command