aboutsummaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2023-10-20 21:54:27 -0700
committerAndrew Kelley <andrew@ziglang.org>2023-10-20 21:54:27 -0700
commit5ec59f2a01e268cdbd85f4a2babc62f9996513b7 (patch)
tree135cd17a3db2006b11c2bf6de91694c83bcc9613 /build.zig
parent1c48588fc8c218a0db0a6f511302020830fc3990 (diff)
downloadzig-5ec59f2a01e268cdbd85f4a2babc62f9996513b7.tar.gz
zig-5ec59f2a01e268cdbd85f4a2babc62f9996513b7.zip
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
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig5
1 files changed, 4 insertions, 1 deletions
diff --git a/build.zig b/build.zig
index d58c32d642..7140bb32ca 100644
--- a/build.zig
+++ b/build.zig
@@ -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", .{