From a6c8266edd08bc19d5fed9a89f24d88e8daab01b Mon Sep 17 00:00:00 2001 From: Shenghua Zhang Date: Wed, 20 Sep 2017 21:29:55 +0000 Subject: [PATCH] [iOS] Limit multiple lipo_binary rules running concurrently Multiple lipo_binary/ linker_driver rules running concurrenlty causes release bots out of memory. This CL adds link_pool to the rule to limit the parallelism of the build. Bug: 762840 Change-Id: Iee48382d4e5feb436febd124ad77fe81ed22e424 Reviewed-on: https://chromium-review.googlesource.com/674089 Reviewed-by: Yuke Liao Reviewed-by: Sylvain Defresne Commit-Queue: Sylvain Defresne Cr-Commit-Position: refs/heads/master@{#503091}(cherry picked from commit 586ea88d1c3944246f4b31ad4d4039a1be741acc) TBR=sdefresne@chromium.org Change-Id: Iee48382d4e5feb436febd124ad77fe81ed22e424 Reviewed-on: https://chromium-review.googlesource.com/675885 Reviewed-by: Shenghua Zhang Cr-Commit-Position: refs/branch-heads/3202@{#362} Cr-Branched-From: fa6a5d87adff761bc16afc5498c3f5944c1daa68-refs/heads/master@{#499098} --- build/config/ios/rules.gni | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build/config/ios/rules.gni b/build/config/ios/rules.gni index bcee32120a2bd..27a2047ac8c71 100644 --- a/build/config/ios/rules.gni +++ b/build/config/ios/rules.gni @@ -58,6 +58,9 @@ template("lipo_binary") { script = "//build/toolchain/mac/linker_driver.py" + # http://crbug.com/762840. Fix for bots running out of memory. + pool = "//build/toolchain:link_pool($default_toolchain)" + outputs = [ "$target_out_dir/$_output_name", ]