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

Issue 69293004: Add gomadir for GYP_DEFINES (Closed)

Created:
7 years, 1 month ago by Yoshisato Yanagisawa
Modified:
7 years ago
CC:
chromium-reviews
Base URL:
https://src.chromium.org/chrome/trunk/src/
Visibility:
Public.

Description

Add use_goma for GYP_DEFINES If use_goma is specified in GYP_DEFINES, gomacc is automatically set as CC wrapper and CXX wrapper. It uses the default goma directory if the gomadir option is not given. No need to fix PATH when running ninja (or make). This is the revival of https://codereview.chromium.org/12419003/, and expected to work with https://codereview.chromium.org/66303010/. Note: Goma team suggest not to put gomadir in PATH if you use use_goma option. Currently, this works well with ninja (default build system of chromium). It does not work well with make in some case (e.g. build on linux with make). According to the review comment, ANDROID_GOMA_WRAPPER has already been obsoleted. ANDROID_GOMA_WRAPPER will be just ignored after this change. Example 1 $ GYP_DEFINES="clang=1 use_goma=1" build/gyp_chromium (no need to set CC/CXX at this stage) build.ninja will have cc = ${HOME}/gomacc ../../third_party/llvm-build/Release+Asserts/bin/clang cxx = ${HOME}/gomacc ../../third_party/llvm-build/Release+Asserts/bin/clang++ The user can run ninja without setting PATH or so. $ ninja -C out/Release -j100 Example 2 $ GYP_DEFINES="use_goma=1 gomadir=/path/to/goma" build/gyp_chromium build.ninja will have cc = /path/to/goma/gomacc gcc cxx = /path/to/goma/gomacc g++ user can run ninja without setting PATH or so. $ ninja -C out/Release -j100 BUG=173686 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=237900

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Total comments: 4

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -22 lines) Patch
M build/common.gypi View 1 2 3 4 5 6 7 8 7 chunks +48 lines, -22 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
Yoshisato Yanagisawa
Will you check this before I will ask reviewers you have listed in https://codereview.chromium.org/12419003/? Thank ...
7 years, 1 month ago (2013-11-12 01:52:46 UTC) #1
Yoshisato Yanagisawa
Hi, This is the revival of https://codereview.chromium.org/12419003/. I hope we can provide unified way to ...
7 years, 1 month ago (2013-11-13 22:08:35 UTC) #2
Nico
I'll repeat what I said on the old CL: """I too am not sure if ...
7 years, 1 month ago (2013-11-13 22:12:14 UTC) #3
Yoshisato Yanagisawa
On 2013/11/13 22:12:14, Nico wrote: > I'll repeat what I said on the old CL: ...
7 years, 1 month ago (2013-11-13 22:41:08 UTC) #4
michaelbai
Why do you need to support ANDROID_GOMA_DIR? FYI, I use 'PATH=/path/to/goma/:$PATH ninja -C out/Debug -j ...
7 years, 1 month ago (2013-11-13 22:56:24 UTC) #5
Nico
On Wed, Nov 13, 2013 at 2:41 PM, <yyanagisawa@chromium.org> wrote: > On 2013/11/13 22:12:14, Nico ...
7 years, 1 month ago (2013-11-13 23:00:22 UTC) #6
Yoshisato Yanagisawa
On 2013/11/13 23:00:22, Nico wrote: > On Wed, Nov 13, 2013 at 2:41 PM, <mailto:yyanagisawa@chromium.org> ...
7 years, 1 month ago (2013-11-14 00:10:18 UTC) #7
Nico
On Thu, Nov 14, 2013 at 12:10 AM, <yyanagisawa@chromium.org> wrote: > On 2013/11/13 23:00:22, Nico ...
7 years, 1 month ago (2013-11-17 10:03:12 UTC) #8
Yoshisato Yanagisawa
On 2013/11/17 10:03:12, Nico (in Tokyo until Nov 25) wrote: > > Is it OK ...
7 years, 1 month ago (2013-11-21 06:04:05 UTC) #9
Yoshisato Yanagisawa
Fixed some issues on Windows. Will you take another look at the change? If nothing ...
7 years ago (2013-11-26 11:05:38 UTC) #10
Nico
lgtm with comments addressed. https://codereview.chromium.org/69293004/diff/1240001/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/69293004/diff/1240001/build/common.gypi#newcode812 build/common.gypi:812: # TODO(yyanagisawa): set "ok" only ...
7 years ago (2013-11-26 21:58:22 UTC) #11
Yoshisato Yanagisawa
Thanks for the review. https://codereview.chromium.org/69293004/diff/1240001/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/69293004/diff/1240001/build/common.gypi#newcode812 build/common.gypi:812: # TODO(yyanagisawa): set "ok" only ...
7 years ago (2013-11-27 02:01:39 UTC) #12
Yoshisato Yanagisawa
Since the patch set 8 did not get ${HOME}, I have fixed it in patch ...
7 years ago (2013-11-27 02:32:38 UTC) #13
Nico
still lgtm Sorry, should have caught this :-(
7 years ago (2013-11-27 02:35:43 UTC) #14
Yoshisato Yanagisawa
Thanks for the review. That's what I should have done before sending the code review. ...
7 years ago (2013-11-27 02:56:11 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yyanagisawa@chromium.org/69293004/1300001
7 years ago (2013-11-29 01:44:28 UTC) #16
commit-bot: I haz the power
7 years ago (2013-11-29 08:20:43 UTC) #17
Message was sent while issue was closed.
Change committed as 237900

Powered by Google App Engine
This is Rietveld 408576698