From 02e560d9ef7885f39e401d9e30ba2c5119ea1891 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Wed, 24 Dec 2025 11:37:51 -0800 Subject: [PATCH] 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. --- build.zig | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/build.zig b/build.zig index 7ea515de3e..a9c38f3349 100644 --- 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;