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

Side by Side Diff: build/toolchain/concurrent_links.gni

Issue 2282943002: build: Tweak linker memory usage for android static build (Closed)
Patch Set: Created 4 years, 3 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 2016 The Chromium Authors. All rights reserved. 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 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 # This file should only be imported from files that define toolchains. 5 # This file should only be imported from files that define toolchains.
6 # There's no way to enforce this exactly, but all toolchains are processed 6 # There's no way to enforce this exactly, but all toolchains are processed
7 # in the context of the default_toolchain, so we can at least check for that. 7 # in the context of the default_toolchain, so we can at least check for that.
8 assert(current_toolchain == default_toolchain) 8 assert(current_toolchain == default_toolchain)
9 9
10 import("//build/config/sanitizers/sanitizers.gni") 10 import("//build/config/sanitizers/sanitizers.gni")
(...skipping 10 matching lines...) Expand all
21 if (concurrent_links == -1) { 21 if (concurrent_links == -1) {
22 if (allow_posix_link_time_opt || is_cfi) { 22 if (allow_posix_link_time_opt || is_cfi) {
23 _args = [ 23 _args = [
24 "--mem_per_link_gb=24", 24 "--mem_per_link_gb=24",
25 "--reserve_mem_gb=10", 25 "--reserve_mem_gb=10",
26 ] 26 ]
27 } else if (is_win) { 27 } else if (is_win) {
28 _args = [ "--mem_per_link_gb=5" ] 28 _args = [ "--mem_per_link_gb=5" ]
29 } else if (is_mac) { 29 } else if (is_mac) {
30 _args = [ "--mem_per_link_gb=4" ] 30 _args = [ "--mem_per_link_gb=4" ]
31 } else if (is_android && !is_component_build) {
32 _args = [ "--mem_per_link_gb=25" ]
Dirk Pranke 2016/08/26 17:50:45 is this number correct for both debug and release?
boliu 2016/08/26 17:58:16 this was measured when I copied the config from th
31 } else { 33 } else {
32 _args = [] 34 _args = []
33 } 35 }
34 36
35 # TODO(crbug.com/617429) Pass more build configuration info to the script 37 # TODO(crbug.com/617429) Pass more build configuration info to the script
36 # so that we can compute better values. 38 # so that we can compute better values.
37 concurrent_links = exec_script("get_concurrent_links.py", _args, "value") 39 concurrent_links = exec_script("get_concurrent_links.py", _args, "value")
38 } 40 }
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