Commit 5ec59f2a01

Andrew Kelley <andrew@ziglang.org>
2023-10-21 06:54:27
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
1 parent 1c48588
Changed files (1)
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", .{