authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-01-03 10:28:02-08:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-01-04 00:27:09-08:00
loge19c686c22d6e1666244075909b9fe1993e1ee2b
tree6d3cd2fed82584318c283c198171670b1ecbe780
parente23d980e11cb0d522a651c1dc1d8768050c60822

build: bump max_rss for zig

this was exceeded on CI. this value is not meant to be so precisely tweaked per OS and arch

1 files changed, 1 insertions(+), 20 deletions(-)

build.zig+1-20
......@@ -829,26 +829,7 @@ fn addCompilerMod(b: *std.Build, options: AddCompilerModOptions) *std.Build.Modu
829829fn addCompilerStep(b: *std.Build, options: AddCompilerModOptions) *std.Build.Step.Compile {
830830 const exe = b.addExecutable(.{
831831 .name = "zig",
832 .max_rss = switch (b.graph.host.result.os.tag) {
833 .linux => switch (b.graph.host.result.cpu.arch) {
834 .aarch64 => 6_240_805_683,
835 .loongarch64 => 5_024_158_515,
836 .powerpc64le => 5_224_914_534,
837 .riscv64 => 6_996_309_196,
838 .s390x => 4_997_174_476,
839 .x86_64 => 6_664_025_702,
840 else => 7_000_000_000,
841 },
842 .macos => switch (b.graph.host.result.cpu.arch) {
843 .aarch64 => 6_639_145_779,
844 else => 6_700_000_000,
845 },
846 .windows => switch (b.graph.host.result.cpu.arch) {
847 .x86_64 => 5_770_394_009,
848 else => 5_800_000_000,
849 },
850 else => 7_000_000_000,
851 },
832 .max_rss = 7_000_000_000,
852833 .root_module = addCompilerMod(b, options),
853834 });
854835 exe.stack_size = stack_size;