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

Issue 1660053005: Add option cc_wrapper to GN (Closed)

Created:
4 years, 10 months ago by dshwang
Modified:
4 years, 10 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add option cc_wrapper to GN For example: cc_wrapper="ccache" cc_wrapper="icecc" cc_wrapper="distcc" cc_wrapper="ccache distcc" In addition, it deprecates use_ccache and clang_dir. A user who uses use_ccache must switch to cc_wrapper="ccache" clang_dir supported icecc in the masquerade way. There is 2 ways to use external compiler wrapper. For example using icecc, 1) CC='icecc gcc' 2) masquerade icecc mkdir /opt/icecc/bin ln -s /usr/bin/icecc /opt/icecc/bin/gcc ln -s /usr/bin/icecc /opt/icecc/bin/g++ export PATH=/opt/icecc/bin:$PATH clang_dir="/opt/icecc/bin/" This CL uses the #1 way because goma uses the #1 way, and removes the #2 hack, which is clang_dir. Committed: https://crrev.com/e279af1c9c511972000049b2c4d261161b48075d Cr-Commit-Position: refs/heads/master@{#377251}

Patch Set 1 #

Patch Set 2 : add faster_build option #

Patch Set 3 : rename to cc_wrapper #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -50 lines) Patch
M build/config/compiler/BUILD.gn View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
A + build/toolchain/cc_wrapper.gni View 1 2 2 chunks +15 lines, -5 lines 0 comments Download
D build/toolchain/ccache.gni View 1 1 chunk +0 lines, -25 lines 0 comments Download
M build/toolchain/cros/BUILD.gn View 1 2 1 chunk +1 line, -1 line 0 comments Download
M build/toolchain/gcc_toolchain.gni View 1 2 5 chunks +12 lines, -14 lines 0 comments Download
M build/toolchain/linux/BUILD.gn View 1 2 1 chunk +1 line, -1 line 0 comments Download
M build/toolchain/nacl/BUILD.gn View 1 2 1 chunk +1 line, -1 line 0 comments Download
M docs/ccache_mac.md View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 31 (13 generated)
dshwang
Nico, Dirk, could you review? it's follow-up of https://codereview.chromium.org/1610093003/ This CL enable icecc to compile ...
4 years, 10 months ago (2016-02-04 14:52:10 UTC) #3
Dirk Pranke
Using icecc doesn't seem android-specific. For other compiler accelerators (goma, distcc, ccache), we set things ...
4 years, 10 months ago (2016-02-04 22:11:15 UTC) #4
dshwang
On 2016/02/04 22:11:15, Dirk Pranke wrote: > Using icecc doesn't seem android-specific. > > For ...
4 years, 10 months ago (2016-02-04 22:36:36 UTC) #5
Dirk Pranke
On 2016/02/04 22:36:36, dshwang wrote: > On 2016/02/04 22:11:15, Dirk Pranke wrote: > > Using ...
4 years, 10 months ago (2016-02-04 23:55:32 UTC) #6
dshwang
On 2016/02/04 23:55:32, Dirk Pranke wrote: > the toolchains are defined using android_gcc_toolchain_helper(), which is ...
4 years, 10 months ago (2016-02-05 12:08:47 UTC) #8
Dirk Pranke
I think this approach generally looks good, but we might want to work on the ...
4 years, 10 months ago (2016-02-09 03:04:06 UTC) #10
Nico
Maybe cc_wrapper? (also it'd be nice if goma used the same machinery as it's morally ...
4 years, 10 months ago (2016-02-09 03:06:52 UTC) #11
Dirk Pranke
On 2016/02/09 03:06:52, Nico wrote: > Maybe cc_wrapper? (also it'd be nice if goma used ...
4 years, 10 months ago (2016-02-09 03:08:42 UTC) #12
dshwang
On 2016/02/09 03:08:42, Dirk Pranke wrote: > On 2016/02/09 03:06:52, Nico wrote: > > Maybe ...
4 years, 10 months ago (2016-02-09 06:19:02 UTC) #14
Dirk Pranke
lgtm. If it's okay with you I'd still like to wait for brettw@ to take ...
4 years, 10 months ago (2016-02-09 23:38:06 UTC) #15
dshwang
On 2016/02/09 23:38:06, Dirk Pranke wrote: > lgtm. If it's okay with you I'd still ...
4 years, 10 months ago (2016-02-10 09:14:42 UTC) #16
dshwang
On 2016/02/10 09:14:42, dshwang wrote: > On 2016/02/09 23:38:06, Dirk Pranke wrote: > > lgtm. ...
4 years, 10 months ago (2016-02-16 18:49:13 UTC) #17
dshwang
On 2016/02/16 18:49:13, dshwang wrote: > On 2016/02/10 09:14:42, dshwang wrote: > > On 2016/02/09 ...
4 years, 10 months ago (2016-02-23 12:48:36 UTC) #18
brettw
LGTM, it would be helpful to explain in the commit message more about the clang_dir ...
4 years, 10 months ago (2016-02-23 21:20:00 UTC) #19
dshwang
On 2016/02/23 21:20:00, brettw wrote: > LGTM, it would be helpful to explain in the ...
4 years, 10 months ago (2016-02-24 08:50:45 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1660053005/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1660053005/40001
4 years, 10 months ago (2016-02-24 08:52:40 UTC) #27
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 10 months ago (2016-02-24 09:28:02 UTC) #29
commit-bot: I haz the power
4 years, 10 months ago (2016-02-24 09:29:27 UTC) #31
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/e279af1c9c511972000049b2c4d261161b48075d
Cr-Commit-Position: refs/heads/master@{#377251}

Powered by Google App Engine
This is Rietveld 408576698