authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-10-12 18:46:50-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-10-12 18:46:50-07:00
log89ec7145f1adecce62c3d21c9d96b156b1520cb5
tree25713e0a97312ddc6bdc7827f2ba62f1593b747b
parent2551cf283f28e2cae27e461b51ea6df92d849fbb

Maker: check for --fetch after --print-tree


1 files changed, 5 insertions(+), 5 deletions(-)

lib/compiler/Maker.zig+5-5
...@@ -1378,11 +1378,6 @@ fn configure(graph: *Graph, options: ConfigureOptions) !ScannedConfig {...@@ -1378,11 +1378,6 @@ fn configure(graph: *Graph, options: ConfigureOptions) !ScannedConfig {
1378 return error.FailedButCacheIntact;1378 return error.FailedButCacheIntact;
1379 }1379 }
13801380
1381 if (options.fetch_mode == .all) {
1382 _ = io.lockStderr(&.{}, .no_color) catch {};
1383 process.exit(0);
1384 }
1385
1386 if (options.print_configuration == .tree) {1381 if (options.print_configuration == .tree) {
1387 const NO_COLOR = EnvVar.NO_COLOR.isSet(&graph.environ_map);1382 const NO_COLOR = EnvVar.NO_COLOR.isSet(&graph.environ_map);
1388 const CLICOLOR_FORCE = EnvVar.CLICOLOR_FORCE.isSet(&graph.environ_map);1383 const CLICOLOR_FORCE = EnvVar.CLICOLOR_FORCE.isSet(&graph.environ_map);
...@@ -1397,6 +1392,11 @@ fn configure(graph: *Graph, options: ConfigureOptions) !ScannedConfig {...@@ -1397,6 +1392,11 @@ fn configure(graph: *Graph, options: ConfigureOptions) !ScannedConfig {
1397 process.exit(0);1392 process.exit(0);
1398 }1393 }
13991394
1395 if (options.fetch_mode == .all) {
1396 _ = io.lockStderr(&.{}, .no_color) catch {};
1397 process.exit(0);
1398 }
1399
1400 // Create the dependencies.zig file for configurer to1400 // Create the dependencies.zig file for configurer to
1401 // obtain via `@import("@dependencies")`.1401 // obtain via `@import("@dependencies")`.
1402 {1402 {