authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-06-26 00:46:44-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-06-29 23:50:20-07:00
log2554d416dfe2d5bf1df4de256b7c761ba464984d
treeedbbea4414e2c9f1890288b88bdbe600d201bcd5
parent7f9851c0d8630c6ed10fa591ef520b38c4a16f00

Maker: raise file descriptor limit

This was present in the corresponding cmdBuild code.

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

lib/compiler/Maker.zig+3
......@@ -135,6 +135,7 @@ pub fn main(init: process.Init.Minimal) !void {
135135 // The build runner is long-lived in the following use cases:
136136 // * `--watch` mode
137137 // * `--webui` mode
138 // * `--fuzz` mode
138139 // * A project that has a large, complex build graph.
139140 const gpa = if (use_safe_allocator) safe_allocator_instance.allocator() else std.heap.smp_allocator;
140141 defer if (use_safe_allocator) {
......@@ -552,6 +553,8 @@ pub fn main(init: process.Init.Minimal) !void {
552553 const early_exit_mode = fetch_only or help_menu or steps_menu or print_configuration != .none;
553554 const server_mode = !early_exit_mode and (watch or webui_listen != null or fuzz != null);
554555
556 process.raiseFileDescriptorLimit();
557
555558 const cwd_path = std.zig.getResolvedCwd(io, arena) catch |err|
556559 fatal("resolving current directory path failed: {t}", .{err});
557560