1# Copyright 2016 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") 6import("//build/toolchain/rbe.gni") 7 8declare_args() { 9 # Pool for non remote tasks. 10 action_pool_depth = -1 11} 12 13if (current_toolchain == default_toolchain) { 14 if (action_pool_depth == -1 || use_remoteexec) { 15 action_pool_depth = exec_script("get_cpu_count.py", [], "value") 16 } 17 18 pool("link_pool") { 19 depth = concurrent_links 20 } 21 22 pool("action_pool") { 23 depth = action_pool_depth 24 } 25 26 pool("remote_action_pool") { 27 depth = 1000 28 } 29} 30