dev/template: update to latest Zig build API

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2023-02-08 01:46:59 -07:00 committed by Stephen Gutekanst
parent 9afb9e041b
commit af1276d9a8

View file

@ -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, .{});
}
```