From 2619768aeb264067df30c1d020925525ffd080ef Mon Sep 17 00:00:00 2001 From: Joseph Gette Date: Mon, 16 Mar 2026 14:50:15 +0100 Subject: [PATCH] Give linking actions more RAM --- cc/private/link/finalize_link_action.bzl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cc/private/link/finalize_link_action.bzl b/cc/private/link/finalize_link_action.bzl index 6073344d1..29ae23761 100644 --- a/cc/private/link/finalize_link_action.bzl +++ b/cc/private/link/finalize_link_action.bzl @@ -462,8 +462,8 @@ def _quote_replacement(s): def _resource_set(os, inputs): if os == "osx": - return {"memory": 15 + 0.05 * inputs, "cpu": 1} + return {"memory": max(256, 250 + 2.5 * inputs), "cpu": 1} elif os == "linux": - return {"memory": max(50, -100 + 0.1 * inputs), "cpu": 1} + return {"memory": max(256, 250 + 2.5 * inputs), "cpu": 1} else: - return {"memory": 1500 + inputs, "cpu": 1} + return {"memory": 1500 + 2.5 * inputs, "cpu": 1}