core: update to latest Zig build API
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
f80e02b7c1
commit
e54a4b458a
3 changed files with 68 additions and 58 deletions
|
|
@ -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, .{});
|
||||
}
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue