authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-06-24 13:56:41-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-06-29 23:50:19-07:00
logf1f5651f24b29c89fa8ed9bdc0d1a55fa9fd79cc
tree62d078563d8060e9168f39311aafcd695541314c
parent91a08af5702cba683ae2d418ff57307f159e3281

Maker: remove redundant continue statements

these are relics of when this code used to live in src/main.zig

1 files changed, 0 insertions(+), 6 deletions(-)

lib/compiler/Maker.zig-6
......@@ -256,31 +256,26 @@ pub fn main(init: process.Init.Minimal) !void {
256256 {
257257 try cached_passthru_configure.append(arena, @intCast(configure_argv.items.len));
258258 configure_argv.appendAssumeCapacity(arg);
259 continue;
260259 } else if (mem.eql(u8, arg, "--system")) {
261260 system_pkg_dir_path = nextArgOrFatal(args, &arg_i);
262261
263262 try cached_passthru_configure.append(arena, @intCast(configure_argv.items.len));
264263 configure_argv.appendAssumeCapacity(arg); // Intentionally "--system" only; not the path.
265 continue;
266264 } else if (mem.cutPrefix(u8, arg, "--color=")) |rest| {
267265 color = stringToEnum(Color, rest) orelse
268266 fatal("expected --color=[auto|on|off]; found {q}", .{arg});
269267
270268 try cached_passthru_configure.append(arena, @intCast(configure_argv.items.len));
271269 configure_argv.appendAssumeCapacity(arg);
272 continue;
273270 } else if (mem.eql(u8, arg, "--cache-poison")) {
274271 cache_poison = .poisoned;
275272 configure_argv.appendAssumeCapacity("--cache-poison=poisoned");
276 continue;
277273 } else if (mem.cutPrefix(u8, arg, "--cache-poison=")) |rest| {
278274 // Allow the configurer process to report parse failure.
279275 if (stringToEnum(std.Build.Graph.CachePoison, rest)) |poison| {
280276 cache_poison = poison;
281277 }
282278 configure_argv.appendAssumeCapacity(arg);
283 continue;
284279 } else if (mem.eql(u8, arg, "--verbose")) {
285280 // Intentionally is added both to make and configure but
286281 // does not go into the cache hash.
......@@ -291,7 +286,6 @@ pub fn main(init: process.Init.Minimal) !void {
291286 // the cache and configurer must set the poison bit when
292287 // choosing to observe it.
293288 configure_argv.addManyAsArrayAssumeCapacity(2).* = .{ arg, prefix };
294 continue;
295289 } else if (mem.eql(u8, arg, "--cache-dir")) {
296290 override_local_cache_dir = nextArgOrFatal(args, &arg_i);
297291 } else if (mem.eql(u8, arg, "--pkg-dir")) {