core: update to latest Zig build API

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2023-02-08 02:46:24 -07:00 committed by Stephen Gutekanst
parent f80e02b7c1
commit e54a4b458a
3 changed files with 68 additions and 58 deletions

View file

@ -26,9 +26,9 @@ Then in your `build.zig` add:
...
const core = @import("libs/mach-core/build.zig");
pub fn build(b: *Builder) void {
pub fn build(b: *Build) void {
...
exe.addPackage(core.pkg);
exe.addModule("core", core.module(b));
core.link(b, exe, .{});
}
```