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

Side by Side 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, 5 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # TODO(brettw) Use "gcc_toolchain.gni" like the Linux toolchains. This requires 5 # TODO(brettw) Use "gcc_toolchain.gni" like the Linux toolchains. This requires
6 # some enhancements since the commands on Mac are slightly different than on 6 # some enhancements since the commands on Mac are slightly different than on
7 # Linux. 7 # Linux.
8 8
9 import("../goma.gni") 9 import("../goma.gni")
10 import("//build/config/clang/clang.gni") 10 import("//build/config/clang/clang.gni")
(...skipping 15 matching lines...) Expand all
26 compiler_prefix = cc_wrapper + " " 26 compiler_prefix = cc_wrapper + " "
27 } else { 27 } else {
28 compiler_prefix = "" 28 compiler_prefix = ""
29 } 29 }
30 30
31 if (!use_xcode_clang) { 31 if (!use_xcode_clang) {
32 compiler_prefix = 32 compiler_prefix =
33 compiler_prefix + rebase_path("$clang_base_path/bin/", root_build_dir) 33 compiler_prefix + rebase_path("$clang_base_path/bin/", root_build_dir)
34 } 34 }
35 35
36 if (current_toolchain == default_toolchain) { 36 declare_args() {
37 # Reduce the number of tasks using the copy_bundle_data and compile_xcassets 37 # Reduce the number of tasks using the copy_bundle_data and compile_xcassets
38 # tools as they can cause lots of I/O contention when invoking ninja with a 38 # tools as they can cause lots of I/O contention when invoking ninja with a
39 # large number of parallel jobs (e.g. when using distributed build like goma). 39 # large number of parallel jobs (e.g. when using distributed build like goma).
40 bundle_pool_depth = -1
41 }
42
43 if (current_toolchain == default_toolchain) {
40 pool("bundle_pool") { 44 pool("bundle_pool") {
41 depth = concurrent_links 45 if (bundle_pool_depth == -1) {
46 depth = concurrent_links
47 } else {
48 depth = bundle_pool_depth
49 }
42 } 50 }
43 } 51 }
44 52
45 # When implementing tools using Python scripts, a TOOL_VERSION=N env 53 # When implementing tools using Python scripts, a TOOL_VERSION=N env
46 # variable is placed in front of the command. The N should be incremented 54 # variable is placed in front of the command. The N should be incremented
47 # whenever the script is changed, so that the build system rebuilds all 55 # whenever the script is changed, so that the build system rebuilds all
48 # edges that utilize the script. Ideally this should be changed to use 56 # edges that utilize the script. Ideally this should be changed to use
49 # proper input-dirty checking, but that could be expensive. Instead, use a 57 # proper input-dirty checking, but that could be expensive. Instead, use a
50 # script to get the tool scripts' modification time to use as the version. 58 # script to get the tool scripts' modification time to use as the version.
51 # This won't cause a re-generation of GN files when the tool script changes 59 # This won't cause a re-generation of GN files when the tool script changes
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 372
365 mac_toolchain("ios_clang_x86") { 373 mac_toolchain("ios_clang_x86") {
366 toolchain_cpu = "x86" 374 toolchain_cpu = "x86"
367 toolchain_os = "ios" 375 toolchain_os = "ios"
368 } 376 }
369 377
370 mac_toolchain("ios_clang_x64") { 378 mac_toolchain("ios_clang_x64") {
371 toolchain_cpu = "x64" 379 toolchain_cpu = "x64"
372 toolchain_os = "ios" 380 toolchain_os = "ios"
373 } 381 }
OLDNEW
« 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