| ... | ... | @@ -5985,8 +5985,12 @@ fn parseCodeModel(arg: []const u8) std.builtin.CodeModel { |
| 5985 | 5985 | /// garbage collector to run concurrently to zig processes, and to allow multiple |
| 5986 | 5986 | /// zig processes to run concurrently with each other, without clobbering each other. |
| 5987 | 5987 | fn gimmeMoreOfThoseSweetSweetFileDescriptors() void { |
| 5988 | const have_rlimit = switch (builtin.os.tag) { |
| 5989 | .windows, .wasi => false, |
| 5990 | else => true, |
| 5991 | }; |
| 5992 | if (!have_rlimit) return; |
| 5988 | 5993 | const posix = std.posix; |
| 5989 | | if (!@hasDecl(posix, "rlimit")) return; |
| 5990 | 5994 | |
| 5991 | 5995 | var lim = posix.getrlimit(.NOFILE) catch return; // Oh well; we tried. |
| 5992 | 5996 | if (comptime builtin.target.isDarwin()) { |