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

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

Issue 1492843006: get_concurrent_links.py: give more RAM per job in LTO builds. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: win Created 5 years 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 | build/toolchain/get_concurrent_links.py » ('j') | 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 import("//build/config/nacl/config.gni") 5 import("//build/config/nacl/config.gni")
6 import("//build/config/sanitizers/sanitizers.gni") 6 import("//build/config/sanitizers/sanitizers.gni")
7 import("//build/toolchain/ccache.gni") 7 import("//build/toolchain/ccache.gni")
8 import("//build/toolchain/goma.gni") 8 import("//build/toolchain/goma.gni")
9 import("//build/toolchain/toolchain.gni") 9 import("//build/toolchain/toolchain.gni")
10 10
11 # This value will be inherited in the toolchain below. 11 # This value will be inherited in the toolchain below.
12 concurrent_links = exec_script("get_concurrent_links.py", [], "value") 12 if (is_cfi) {
13 concurrent_links =
14 exec_script("get_concurrent_links.py", [ "--lto" ], "value")
15 } else {
16 concurrent_links = exec_script("get_concurrent_links.py", [], "value")
17 }
13 18
14 # This template defines a toolchain for something that works like gcc 19 # This template defines a toolchain for something that works like gcc
15 # (including clang). 20 # (including clang).
16 # 21 #
17 # It requires the following variables specifying the executables to run: 22 # It requires the following variables specifying the executables to run:
18 # - cc 23 # - cc
19 # - cxx 24 # - cxx
20 # - ar 25 # - ar
21 # - ld 26 # - ld
22 # and the following which is used in the toolchain_args 27 # and the following which is used in the toolchain_args
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after
451 nm = "${toolprefix}nm" 456 nm = "${toolprefix}nm"
452 457
453 forward_variables_from(invoker, 458 forward_variables_from(invoker,
454 [ 459 [
455 "toolchain_cpu", 460 "toolchain_cpu",
456 "toolchain_os", 461 "toolchain_os",
457 "use_gold", 462 "use_gold",
458 ]) 463 ])
459 } 464 }
460 } 465 }
OLDNEW
« no previous file with comments | « no previous file | build/toolchain/get_concurrent_links.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698