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