xref: /aosp_15_r20/external/angle/build/toolchain/apple/BUILD.gn (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
1*8975f5c5SAndroid Build Coastguard Worker# Copyright 2021 The Chromium Authors
2*8975f5c5SAndroid Build Coastguard Worker# Use of this source code is governed by a BSD-style license that can be
3*8975f5c5SAndroid Build Coastguard Worker# found in the LICENSE file.
4*8975f5c5SAndroid Build Coastguard Worker
5*8975f5c5SAndroid Build Coastguard Workerimport("//build/toolchain/concurrent_links.gni")
6*8975f5c5SAndroid Build Coastguard Worker
7*8975f5c5SAndroid Build Coastguard Workerdeclare_args() {
8*8975f5c5SAndroid Build Coastguard Worker  # Reduce the number of tasks using the copy_bundle_data and compile_xcassets
9*8975f5c5SAndroid Build Coastguard Worker  # tools as they can cause lots of I/O contention when invoking ninja with a
10*8975f5c5SAndroid Build Coastguard Worker  # large number of parallel jobs (e.g. when using distributed build like rbe).
11*8975f5c5SAndroid Build Coastguard Worker  bundle_pool_depth = -1
12*8975f5c5SAndroid Build Coastguard Worker}
13*8975f5c5SAndroid Build Coastguard Worker
14*8975f5c5SAndroid Build Coastguard Workerif (current_toolchain == default_toolchain) {
15*8975f5c5SAndroid Build Coastguard Worker  pool("bundle_pool") {
16*8975f5c5SAndroid Build Coastguard Worker    if (bundle_pool_depth == -1) {
17*8975f5c5SAndroid Build Coastguard Worker      depth = concurrent_links
18*8975f5c5SAndroid Build Coastguard Worker    } else {
19*8975f5c5SAndroid Build Coastguard Worker      depth = bundle_pool_depth
20*8975f5c5SAndroid Build Coastguard Worker    }
21*8975f5c5SAndroid Build Coastguard Worker  }
22*8975f5c5SAndroid Build Coastguard Worker}
23