1# Copyright 2016 The Chromium Authors. All rights reserved. 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 # Pool for non goma tasks. 9 action_pool_depth = -1 10} 11 12if (action_pool_depth == -1) { 13 action_pool_depth = exec_script("get_cpu_count.py", [], "value") 14} 15 16if (current_toolchain == default_toolchain) { 17 pool("link_pool") { 18 depth = concurrent_links 19 } 20 21 pool("action_pool") { 22 depth = action_pool_depth 23 } 24} 25