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

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

Issue 1660053005: Add option cc_wrapper to GN (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rename to cc_wrapper Created 4 years, 10 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/config/compiler/BUILD.gn ('k') | build/toolchain/ccache.gni » ('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 # Defines the configuration of ccache - a c/c++ compiler cache which can 5 # Defines the configuration of cc wrapper
6 # greatly reduce recompilation times. 6 # 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
8 # remote machines allowing a parallel build.
7 # 9 #
8 # TIPS: 10 # TIPS
9 # 11 #
12 # 1) ccache
10 # Set clang_use_chrome_plugins=false if using ccache 3.1.9 or earlier, since 13 # Set clang_use_chrome_plugins=false if using ccache 3.1.9 or earlier, since
11 # these versions don't support -Xclang. (3.1.10 and later will silently 14 # these versions don't support -Xclang. (3.1.10 and later will silently
12 # ignore -Xclang, so it doesn't matter if you disable clang_use_chrome_plugins 15 # ignore -Xclang, so it doesn't matter if you disable clang_use_chrome_plugins
13 # or not). 16 # or not).
14 # 17 #
15 # Use ccache 3.2 or later to avoid clang unused argument warnings: 18 # Use ccache 3.2 or later to avoid clang unused argument warnings:
16 # https://bugzilla.samba.org/show_bug.cgi?id=8118 19 # https://bugzilla.samba.org/show_bug.cgi?id=8118
17 # 20 #
18 # To avoid -Wparentheses-equality clang warnings, at some cost in terms of 21 # To avoid -Wparentheses-equality clang warnings, at some cost in terms of
19 # speed, you can do: 22 # speed, you can do:
20 # export CCACHE_CPP2=yes 23 # export CCACHE_CPP2=yes
24 #
25 # 2) icecc
26 # Set clang_use_chrome_plugins=false because icecc cannot distribute custom
27 # clang libraries.
28 #
29 # To use icecc and ccache together, set cc_wrapper = "ccache" with
30 # export CCACHE_PREFIX=icecc
21 31
22 declare_args() { 32 declare_args() {
23 # Set to true to enable ccache. Probably doesn't work on windows. 33 # Set to "ccache", "icecc" or "distcc". Probably doesn't work on windows.
24 use_ccache = false 34 cc_wrapper = ""
25 } 35 }
OLDNEW
« no previous file with comments | « build/config/compiler/BUILD.gn ('k') | build/toolchain/ccache.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698