From 1c48588fc8c218a0db0a6f511302020830fc3990 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Fri, 20 Oct 2023 21:30:25 -0700 Subject: [PATCH] build.zig: annotate max_rss for building the compiler I observed some out-of-memory conditions happening on one of the CI servers. This should make it avoid scheduling compiler builds at the same time as other memory-intensive operations. --- build.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/build.zig b/build.zig index 367c964412..d58c32d642 100644 --- a/build.zig +++ b/build.zig @@ -578,6 +578,7 @@ fn addCompilerStep( .root_source_file = .{ .path = "src/main.zig" }, .target = target, .optimize = optimize, + .max_rss = 5_200_000_000, }); exe.stack_size = stack_size; exe.addAnonymousModule("aro", .{