From f1f5651f24b29c89fa8ed9bdc0d1a55fa9fd79cc Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Wed, 24 Jun 2026 13:56:41 -0700 Subject: [PATCH] Maker: remove redundant continue statements these are relics of when this code used to live in src/main.zig --- lib/compiler/Maker.zig | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/compiler/Maker.zig b/lib/compiler/Maker.zig index 35510c6f0be03815a3704f49b5de5bf030ccf0ef..d7c9f6c09c8f8e8439c7329977f43a83762d6031 100644 --- a/lib/compiler/Maker.zig +++ b/lib/compiler/Maker.zig @@ -256,31 +256,26 @@ pub fn main(init: process.Init.Minimal) !void { { try cached_passthru_configure.append(arena, @intCast(configure_argv.items.len)); configure_argv.appendAssumeCapacity(arg); - continue; } else if (mem.eql(u8, arg, "--system")) { system_pkg_dir_path = nextArgOrFatal(args, &arg_i); try cached_passthru_configure.append(arena, @intCast(configure_argv.items.len)); configure_argv.appendAssumeCapacity(arg); // Intentionally "--system" only; not the path. - continue; } else if (mem.cutPrefix(u8, arg, "--color=")) |rest| { color = stringToEnum(Color, rest) orelse fatal("expected --color=[auto|on|off]; found {q}", .{arg}); try cached_passthru_configure.append(arena, @intCast(configure_argv.items.len)); configure_argv.appendAssumeCapacity(arg); - continue; } else if (mem.eql(u8, arg, "--cache-poison")) { cache_poison = .poisoned; configure_argv.appendAssumeCapacity("--cache-poison=poisoned"); - continue; } else if (mem.cutPrefix(u8, arg, "--cache-poison=")) |rest| { // Allow the configurer process to report parse failure. if (stringToEnum(std.Build.Graph.CachePoison, rest)) |poison| { cache_poison = poison; } configure_argv.appendAssumeCapacity(arg); - continue; } else if (mem.eql(u8, arg, "--verbose")) { // Intentionally is added both to make and configure but // does not go into the cache hash. @@ -291,7 +286,6 @@ pub fn main(init: process.Init.Minimal) !void { // the cache and configurer must set the poison bit when // choosing to observe it. configure_argv.addManyAsArrayAssumeCapacity(2).* = .{ arg, prefix }; - continue; } else if (mem.eql(u8, arg, "--cache-dir")) { override_local_cache_dir = nextArgOrFatal(args, &arg_i); } else if (mem.eql(u8, arg, "--pkg-dir")) { -- 2.54.0