Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Unified Diff: build/toolchain/mac/BUILD.gn

Issue 2085463002: [iOS/GN] Add a variable to configure the depth of "bundle_pool". (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/toolchain/mac/BUILD.gn
diff --git a/build/toolchain/mac/BUILD.gn b/build/toolchain/mac/BUILD.gn
index bf5b31324a7f7eb35fe290c504be4822a4ab151b..231a546891d463367ebcdce18584116f5d5f92fa 100644
--- a/build/toolchain/mac/BUILD.gn
+++ b/build/toolchain/mac/BUILD.gn
@@ -33,12 +33,20 @@ if (!use_xcode_clang) {
compiler_prefix + rebase_path("$clang_base_path/bin/", root_build_dir)
}
-if (current_toolchain == default_toolchain) {
+declare_args() {
# Reduce the number of tasks using the copy_bundle_data and compile_xcassets
# tools as they can cause lots of I/O contention when invoking ninja with a
# large number of parallel jobs (e.g. when using distributed build like goma).
+ bundle_pool_depth = -1
+}
+
+if (current_toolchain == default_toolchain) {
pool("bundle_pool") {
- depth = concurrent_links
+ if (bundle_pool_depth == -1) {
+ depth = concurrent_links
+ } else {
+ depth = bundle_pool_depth
+ }
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698