BUILD.gn 661 B

1234567891011121314151617181920212223242526
  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. import("//build/toolchain/concurrent_links.gni")
  5. import("//build/toolchain/goma.gni")
  6. import("//build/toolchain/rbe.gni")
  7. declare_args() {
  8. # Pool for non goma tasks.
  9. action_pool_depth = -1
  10. }
  11. if (current_toolchain == default_toolchain) {
  12. if (action_pool_depth == -1 || (use_goma || use_remoteexec)) {
  13. action_pool_depth = exec_script("get_cpu_count.py", [], "value")
  14. }
  15. pool("link_pool") {
  16. depth = concurrent_links
  17. }
  18. pool("action_pool") {
  19. depth = action_pool_depth
  20. }
  21. }