Port to zig 0.17.0

This commit is contained in:
2026-10-12 00:45:24 +02:00
parent 1ca737e489
commit 2330c17e3b
21 changed files with 276 additions and 277 deletions

View File

@@ -65,16 +65,14 @@ pub fn build(b: *std.Build) !void {
const run_cmd = b.addRunArtifact(exe);
run_cmd.step.dependOn(b.getInstallStep());
if (b.args) |args| {
run_cmd.addArgs(args);
}
run_cmd.addPassthruArgs();
const run_step = b.step("run", "Run the game");
run_step.dependOn(&run_cmd.step);
}
fn addShaders(b: *std.Build, exe_mod: *std.Build.Module) !void {
var dir = try b.build_root.handle.openDir(b.graph.io, "assets/shaders", .{ .iterate = true });
var dir = try b.root.openDir(b.graph.io, "assets/shaders", .{ .iterate = true });
defer dir.close(b.graph.io);
var it = dir.iterateAssumeFirstIteration();