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

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

Issue 2219953002: Use new toolchain_args variable in GN (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@toolchain_args
Patch Set: wrap Created 4 years, 4 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 | « build/toolchain/android/BUILD.gn ('k') | build/toolchain/cros/BUILD.gn » ('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) 2014 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2014 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/toolchain/goma.gni")
6
5 # Defines the configuration of cc wrapper 7 # Defines the configuration of cc wrapper
6 # ccache: a c/c++ compiler cache which can greatly reduce recompilation times. 8 # ccache: a c/c++ compiler cache which can greatly reduce recompilation times.
7 # icecc, distcc: it takes compile jobs from a build and distributes them among 9 # icecc, distcc: it takes compile jobs from a build and distributes them among
8 # remote machines allowing a parallel build. 10 # remote machines allowing a parallel build.
9 # 11 #
10 # TIPS 12 # TIPS
11 # 13 #
12 # 1) ccache 14 # 1) ccache
13 # Set clang_use_chrome_plugins=false if using ccache 3.1.9 or earlier, since 15 # Set clang_use_chrome_plugins=false if using ccache 3.1.9 or earlier, since
14 # these versions don't support -Xclang. (3.1.10 and later will silently 16 # these versions don't support -Xclang. (3.1.10 and later will silently
(...skipping 11 matching lines...) Expand all
26 # Set clang_use_chrome_plugins=false because icecc cannot distribute custom 28 # Set clang_use_chrome_plugins=false because icecc cannot distribute custom
27 # clang libraries. 29 # clang libraries.
28 # 30 #
29 # To use icecc and ccache together, set cc_wrapper = "ccache" with 31 # To use icecc and ccache together, set cc_wrapper = "ccache" with
30 # export CCACHE_PREFIX=icecc 32 # export CCACHE_PREFIX=icecc
31 33
32 declare_args() { 34 declare_args() {
33 # Set to "ccache", "icecc" or "distcc". Probably doesn't work on windows. 35 # Set to "ccache", "icecc" or "distcc". Probably doesn't work on windows.
34 cc_wrapper = "" 36 cc_wrapper = ""
35 } 37 }
38
39 assert(!use_goma || cc_wrapper == "",
40 "use_goma and cc_wrapper can not be used together.")
OLDNEW
« no previous file with comments | « build/toolchain/android/BUILD.gn ('k') | build/toolchain/cros/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698