build: link libc for linux
This commit is contained in:
@@ -41,6 +41,10 @@ pub fn build(b: *std.Build) void {
|
|||||||
exe.linkFramework("IOKit");
|
exe.linkFramework("IOKit");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (target.result.os.tag == .linux) {
|
||||||
|
exe.linkLibC();
|
||||||
|
}
|
||||||
|
|
||||||
// This declares intent for the executable to be installed into the
|
// This declares intent for the executable to be installed into the
|
||||||
// standard location when the user invokes the "install" step (the default
|
// standard location when the user invokes the "install" step (the default
|
||||||
// step when running `zig build`).
|
// step when running `zig build`).
|
||||||
|
|||||||
Reference in New Issue
Block a user