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 {...@@ -135,6 +135,7 @@ pub fn main(init: process.Init.Minimal) !void {
135 // The build runner is long-lived in the following use cases:135 // The build runner is long-lived in the following use cases:
136 // * `--watch` mode136 // * `--watch` mode
137 // * `--webui` mode137 // * `--webui` mode
138 // * `--fuzz` mode
138 // * A project that has a large, complex build graph.139 // * A project that has a large, complex build graph.
139 const gpa = if (use_safe_allocator) safe_allocator_instance.allocator() else std.heap.smp_allocator;140 const gpa = if (use_safe_allocator) safe_allocator_instance.allocator() else std.heap.smp_allocator;
140 defer if (use_safe_allocator) {141 defer if (use_safe_allocator) {
...@@ -552,6 +553,8 @@ pub fn main(init: process.Init.Minimal) !void {...@@ -552,6 +553,8 @@ pub fn main(init: process.Init.Minimal) !void {
552 const early_exit_mode = fetch_only or help_menu or steps_menu or print_configuration != .none;553 const early_exit_mode = fetch_only or help_menu or steps_menu or print_configuration != .none;
553 const server_mode = !early_exit_mode and (watch or webui_listen != null or fuzz != null);554 const server_mode = !early_exit_mode and (watch or webui_listen != null or fuzz != null);
554555
556 process.raiseFileDescriptorLimit();
557
555 const cwd_path = std.zig.getResolvedCwd(io, arena) catch |err|558 const cwd_path = std.zig.getResolvedCwd(io, arena) catch |err|
556 fatal("resolving current directory path failed: {t}", .{err});559 fatal("resolving current directory path failed: {t}", .{err});
557560