From d8cfd033b1c4f98ad373c981271773aa2c1abc0a Mon Sep 17 00:00:00 2001 From: antlilja Date: Mon, 6 Mar 2023 23:15:16 +0100 Subject: [PATCH] Use new module API The new module API now returns the created module as well as taking some different parameters. --- build.zig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/build.zig b/build.zig index c4629b8..1493f08 100644 --- a/build.zig +++ b/build.zig @@ -27,8 +27,7 @@ pub fn build(b: *std.Build) void { if (!std.fs.path.isAbsolute(path)) @panic("Make sure to assign an absolute path to the `registry` option (see: std.Build.pathFromRoot).\n"); generate_cmd.addArg(path); - b.addModule(.{ - .name = "vulkan-zig", + _ = b.addModule("vulkan-zig", .{ .source_file = generate_cmd.addOutputFileArg("vk.zig"), }); }