xref: /aosp_15_r20/external/cronet/build/toolchain/BUILD.gn (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
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/goma.gni")
7import("//build/toolchain/rbe.gni")
8
9declare_args() {
10  # Pool for non goma tasks.
11  action_pool_depth = -1
12}
13
14if (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")
17  }
18
19  pool("link_pool") {
20    depth = concurrent_links
21  }
22
23  pool("action_pool") {
24    depth = action_pool_depth
25  }
26
27  pool("remote_action_pool") {
28    depth = 1000
29  }
30}
31