build.zig: building on macos takes more memory

Previous commit caused this error to be printed:

zig build-exe zig Debug aarch64-macos-none: error: memory usage peaked
at 6323765248 bytes, exceeding the declared upper bound of 5200000000
This commit is contained in:
Andrew Kelley 2023-10-20 21:54:27 -07:00
parent 1c48588fc8
commit 5ec59f2a01

View file

@ -578,7 +578,10 @@ fn addCompilerStep(
.root_source_file = .{ .path = "src/main.zig" },
.target = target,
.optimize = optimize,
.max_rss = 5_200_000_000,
.max_rss = if (target.getObjectFormat() == .macho)
6_350_000_000
else
5_200_000_000,
});
exe.stack_size = stack_size;
exe.addAnonymousModule("aro", .{