| ... | @@ -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` mode | 136 | // * `--watch` mode |
| 137 | // * `--webui` mode | 137 | // * `--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); |
| 554 | | 555 | |
| | 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}); |
| 557 | | 560 | |