1# Copyright 2021 The Chromium Authors 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5import("//build/toolchain/concurrent_links.gni") 6 7declare_args() { 8 # Reduce the number of tasks using the copy_bundle_data and compile_xcassets 9 # tools as they can cause lots of I/O contention when invoking ninja with a 10 # large number of parallel jobs (e.g. when using distributed build like goma). 11 bundle_pool_depth = -1 12} 13 14if (current_toolchain == default_toolchain) { 15 pool("bundle_pool") { 16 if (bundle_pool_depth == -1) { 17 depth = concurrent_links 18 } else { 19 depth = bundle_pool_depth 20 } 21 } 22} 23