We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cd62005 commit 6b2899dCopy full SHA for 6b2899d
src/main.zig
@@ -5985,8 +5985,12 @@ fn parseCodeModel(arg: []const u8) std.builtin.CodeModel {
5985
/// garbage collector to run concurrently to zig processes, and to allow multiple
5986
/// zig processes to run concurrently with each other, without clobbering each other.
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;
5993
const posix = std.posix;
- if (!@hasDecl(posix, "rlimit")) return;
5994
5995
var lim = posix.getrlimit(.NOFILE) catch return; // Oh well; we tried.
5996
if (comptime builtin.target.isDarwin()) {
0 commit comments