commit 02e560d9ef7885f39e401d9e30ba2c5119ea1891 (tree)
parent 6f4e93f0dd8f23835d90a630abecf3d1ce3a23b1
Author: Andrew Kelley <andrew@ziglang.org>
Date: Wed, 24 Dec 2025 11:37:51 -0800
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.
Diffstat:
1 file changed, 1 insertion(+), 24 deletions(-)
diff --git a/build.zig b/build.zig
@@ -651,30 +651,7 @@ pub fn build(b: *std.Build) !void {
.use_llvm = use_llvm,
.use_lld = use_llvm,
.zig_lib_dir = b.path("lib"),
- .max_rss = switch (b.graph.host.result.os.tag) {
- .freebsd => switch (b.graph.host.result.cpu.arch) {
- .x86_64 => 2_188_099_584,
- else => 2_200_000_000,
- },
- .linux => switch (b.graph.host.result.cpu.arch) {
- .aarch64 => 1_991_934_771,
- .loongarch64 => 1_844_538_572,
- .powerpc64le => 1_793_035_059,
- .riscv64 => 2_459_003_289,
- .s390x => 1_781_248_409,
- .x86_64 => 977_192_550,
- else => 2_500_000_000,
- },
- .macos => switch (b.graph.host.result.cpu.arch) {
- .aarch64 => 2_062_393_344,
- else => 2_100_000_000,
- },
- .windows => switch (b.graph.host.result.cpu.arch) {
- .x86_64 => 1_953_087_488,
- else => 2_000_000_000,
- },
- else => 2_500_000_000,
- },
+ .max_rss = 2_500_000_000,
});
if (link_libc) {
unit_tests.root_module.link_libc = true;