OLD | NEW |
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 Loading... |
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.") |
OLD | NEW |