authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-12-24 11:37:51-08:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-12-24 11:37:51-08:00
log02e560d9ef7885f39e401d9e30ba2c5119ea1891
tree933effefbd7c02b8c00390c705884e5c54b0a1fa
parent6f4e93f0dd8f23835d90a630abecf3d1ce3a23b1

build.zig: adjust max_rss for unit tests

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
...@@ -651,30 +651,7 @@ pub fn build(b: *std.Build) !void {...@@ -651,30 +651,7 @@ pub fn build(b: *std.Build) !void {
651 .use_llvm = use_llvm,651 .use_llvm = use_llvm,
652 .use_lld = use_llvm,652 .use_lld = use_llvm,
653 .zig_lib_dir = b.path("lib"),653 .zig_lib_dir = b.path("lib"),
654 .max_rss = switch (b.graph.host.result.os.tag) {654 .max_rss = 2_500_000_000,
655 .freebsd => switch (b.graph.host.result.cpu.arch) {
656 .x86_64 => 2_188_099_584,
657 else => 2_200_000_000,
658 },
659 .linux => switch (b.graph.host.result.cpu.arch) {
660 .aarch64 => 1_991_934_771,
661 .loongarch64 => 1_844_538_572,
662 .powerpc64le => 1_793_035_059,
663 .riscv64 => 2_459_003_289,
664 .s390x => 1_781_248_409,
665 .x86_64 => 977_192_550,
666 else => 2_500_000_000,
667 },
668 .macos => switch (b.graph.host.result.cpu.arch) {
669 .aarch64 => 2_062_393_344,
670 else => 2_100_000_000,
671 },
672 .windows => switch (b.graph.host.result.cpu.arch) {
673 .x86_64 => 1_953_087_488,
674 else => 2_000_000_000,
675 },
676 else => 2_500_000_000,
677 },
678 });655 });
679 if (link_libc) {656 if (link_libc) {
680 unit_tests.root_module.link_libc = true;657 unit_tests.root_module.link_libc = true;