fix: link libc
This commit is contained in:
parent
86c28da185
commit
ea78041e13
1 changed files with 2 additions and 0 deletions
|
|
@ -9,6 +9,7 @@ pub fn build(b: *std.Build) void {
|
||||||
.target = target,
|
.target = target,
|
||||||
});
|
});
|
||||||
mod.addObjectFile(b.path(getTemporalRsPath(target)));
|
mod.addObjectFile(b.path(getTemporalRsPath(target)));
|
||||||
|
mod.link_libc = true;
|
||||||
|
|
||||||
const exe = b.addExecutable(.{
|
const exe = b.addExecutable(.{
|
||||||
.name = "temporalz",
|
.name = "temporalz",
|
||||||
|
|
@ -21,6 +22,7 @@ pub fn build(b: *std.Build) void {
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
|
exe.linkLibC();
|
||||||
b.installArtifact(exe);
|
b.installArtifact(exe);
|
||||||
|
|
||||||
// Run command
|
// Run command
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue