dev/template: update to latest Zig build API
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
9afb9e041b
commit
af1276d9a8
1 changed files with 2 additions and 2 deletions
|
|
@ -18,9 +18,9 @@ Then in your `build.zig` add:
|
|||
...
|
||||
const foobar = @import("libs/mach-foobar/build.zig");
|
||||
|
||||
pub fn build(b: *Builder) void {
|
||||
pub fn build(b: *Build) void {
|
||||
...
|
||||
exe.addPackage(foobar.pkg);
|
||||
exe.addModule("foobar", foobar.module(b));
|
||||
foobar.link(b, exe, .{});
|
||||
}
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue