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.
5 import("//build/toolchain/concurrent_links.gni")
6 import("//build/toolchain/goma.gni")
7 import("//build/toolchain/rbe.gni")
10 # Pool for non goma tasks.
11 action_pool_depth = -1
14 if (current_toolchain == default_toolchain) {
15 if (action_pool_depth == -1 || (use_goma || use_remoteexec)) {
16 action_pool_depth = exec_script("get_cpu_count.py", [], "value")
20 depth = concurrent_links
24 depth = action_pool_depth
27 pool("remote_action_pool") {