authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-12-25 15:29:55-08:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-12-26 19:58:56-08:00
log0126e71903fbb71ce0d968034920e2869f60548f
tree8a9088a3350a1f304f17983868326cca845420b5
parent8d96d7d2193670f25768287accd0858249992395

build.zig: adjust max_rss for zig libc

this isn't meant to be a precisely measured thing that is different per operating system. it's meant to have some room for growth but not too much.

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

build.zig+1-24
...@@ -565,30 +565,7 @@ pub fn build(b: *std.Build) !void {...@@ -565,30 +565,7 @@ pub fn build(b: *std.Build) !void {
565 .skip_llvm = skip_llvm,565 .skip_llvm = skip_llvm,
566 .skip_libc = true,566 .skip_libc = true,
567 .no_builtin = true,567 .no_builtin = true,
568 .max_rss = switch (b.graph.host.result.os.tag) {568 .max_rss = 900_000_000,
569 .freebsd => switch (b.graph.host.result.cpu.arch) {
570 .x86_64 => 557_892_403,
571 else => 600_000_000,
572 },
573 .linux => switch (b.graph.host.result.cpu.arch) {
574 .aarch64 => 615_302_758,
575 .loongarch64 => 598_974_464,
576 .powerpc64le => 587_845_632,
577 .riscv64 => 382_786_764,
578 .s390x => 395_555_635,
579 .x86_64 => 871_883_161,
580 else => 900_000_000,
581 },
582 .macos => switch (b.graph.host.result.cpu.arch) {
583 .aarch64 => 451_389_030,
584 else => 500_000_000,
585 },
586 .windows => switch (b.graph.host.result.cpu.arch) {
587 .x86_64 => 367_747_072,
588 else => 400_000_000,
589 },
590 else => 900_000_000,
591 },
592 }));569 }));
593570
594 test_modules_step.dependOn(tests.addModuleTests(b, .{571 test_modules_step.dependOn(tests.addModuleTests(b, .{