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

Issue 2011023002: 💈 Remove most GYP_DEFINES logic from tools/clang/scripts/update.py (Closed)

Created:
4 years, 6 months ago by agrieve
Modified:
4 years, 6 months ago
Reviewers:
Dirk Pranke, Nico
CC:
chromium-reviews, eugenis+clang_chromium.org, yunlian, hans, glider+clang_chromium.org, ukai+watch_chromium.org, Reid Kleckner, dmikurube+clang_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove most GYP_DEFINES logic from tools/clang/scripts/update.py Now that we use GN, gclient hooks should not depend on GYP_DEFINES. Removed some of the logic that would disable downloading of the plugin and instead just always download it. BUG=615039, 570091

Patch Set 1 #

Patch Set 2 : revert use_head_revision part #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -3 lines) Patch
M tools/clang/scripts/update.py View 1 1 chunk +1 line, -3 lines 0 comments Download

Messages

Total messages: 16 (4 generated)
agrieve
4 years, 6 months ago (2016-05-26 15:41:23 UTC) #2
agrieve
On 2016/05/26 15:41:23, agrieve wrote:
4 years, 6 months ago (2016-05-26 15:41:42 UTC) #3
Nico
as far as i know, we still set GYP_DEFINES during runhooks, even if we don't ...
4 years, 6 months ago (2016-05-26 15:42:45 UTC) #5
agrieve
On 2016/05/26 15:42:45, Nico wrote: > as far as i know, we still set GYP_DEFINES ...
4 years, 6 months ago (2016-05-26 15:46:54 UTC) #6
Nico
On 2016/05/26 15:46:54, agrieve wrote: > On 2016/05/26 15:42:45, Nico wrote: > > as far ...
4 years, 6 months ago (2016-05-26 15:49:37 UTC) #8
agrieve
On 2016/05/26 15:49:37, Nico wrote: > On 2016/05/26 15:46:54, agrieve wrote: > > On 2016/05/26 ...
4 years, 6 months ago (2016-05-26 16:08:37 UTC) #9
Nico
it'd build the android asan runtime on the non-android bots for example.
4 years, 6 months ago (2016-05-26 19:06:57 UTC) #11
agrieve
On 2016/05/26 19:06:57, Nico wrote: > it'd build the android asan runtime on the non-android ...
4 years, 6 months ago (2016-05-26 19:37:39 UTC) #12
Nico
This does not lgtm, it'll still download the gold plugin for all developers, which is ...
4 years, 6 months ago (2016-05-26 19:42:45 UTC) #13
agrieve
On 2016/05/26 19:42:45, Nico wrote: > This does not lgtm, it'll still download the gold ...
4 years, 6 months ago (2016-05-26 20:08:23 UTC) #14
Nico
On 2016/05/26 20:08:23, agrieve wrote: > On 2016/05/26 19:42:45, Nico wrote: > > This does ...
4 years, 6 months ago (2016-05-26 20:22:05 UTC) #15
agrieve
4 years, 6 months ago (2016-05-27 02:42:29 UTC) #16
On 2016/05/26 20:22:05, Nico (away until Tue May 31) wrote:
> On 2016/05/26 20:08:23, agrieve wrote:
> > On 2016/05/26 19:42:45, Nico wrote:
> > > This does not lgtm, it'll still download the gold plugin for all
developers,
> > > which is what we're trying to avoid.
> > > 
> > > What's motivating wanting to change this file?
> > > 
> > > (See also https://codereview.chromium.org/1908293002/ etc)
> > 
> > I'd like to not see GYP_DEFINES anywhere
> 
> Sure, but the way to get there is to come up with a new mechanism that can do
> what the old one could, and then migrate to that, and not just delete what's
> there, right?
> 
> >, and I'd *really* not like to have any
> > cases where it changes the behaviour of "gclient runhooks". 
> > 
> > With the switch to GN, devs no longer set GYP_DEFINES. If a linux dev (where
> the
> > gold plugin is required)
> 
> It is not. Only in official builds, which most people don't use (LTO builds
take
> like half an hour, so it can't be used for development).
> 
> I'd argue that switching the official builds to gn before having a story for
> things like this was a bit premature, but hey.
> 
> > were to locally do an official build
> > (is_official_build=true is_chrome_branded=true), their build would fail
since
> > this hook would not have downloaded the plugin.
> 
> Right, that needs to be done manually.
> 
> > 
> > (as an aside, should this not just keyed off of is_official_build=true?
> branding
> > shouldn't affect linker flags...)

Alright, I'll abandon this then. Thought it'd be an improvement, but looks like
probably not.

Powered by Google App Engine
This is Rietveld 408576698