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

Issue 1692303004: Update GN bootstrap build (Closed)

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

Description

Update GN bootstrap build Bootstrap didn't work due to recent modifications in base. Unfortunately some new dependencies are required on OSX and that required adding generated_build_date.h to be available separately for the bootstrap process. Tested on Linux and OSX. BUG=None TEST=./tools/gn/bootstrap/bootstrap.py R=brettw@chromium.org,tfarina@chromium.org Committed: https://crrev.com/cda4afd7efda6e3034d58d9f375b01ff3f36d220 Cr-Commit-Position: refs/heads/master@{#376133}

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Patch Set 3 : try to get cl not to recognize new file as copy (similarity=0) #

Patch Set 4 : Another try with similarity=99 #

Patch Set 5 : Use real BUILD_DATE #

Total comments: 2

Patch Set 6 : add description to generated_build_date.h #

Total comments: 1

Patch Set 7 : generate generated_build_date.h #

Patch Set 8 : remove unnecessary imports #

Total comments: 3

Patch Set 9 : update comments #

Total comments: 2

Patch Set 10 : wording of comments #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -5 lines) Patch
M AUTHORS View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M tools/gn/bootstrap/bootstrap.py View 1 2 3 4 5 6 7 8 9 10 chunks +34 lines, -5 lines 4 comments Download

Messages

Total messages: 27 (6 generated)
NGG
4 years, 10 months ago (2016-02-13 15:11:54 UTC) #1
tfarina
https://codereview.chromium.org/1692303004/diff/1/tools/gn/bootstrap/base/generated_build_date.h File tools/gn/bootstrap/base/generated_build_date.h (left): https://codereview.chromium.org/1692303004/diff/1/tools/gn/bootstrap/base/generated_build_date.h#oldcode5 tools/gn/bootstrap/base/generated_build_date.h:5: window.didRunAtDocumentIdleUnexpected = true; Could you tweak the similarity passed ...
4 years, 10 months ago (2016-02-13 16:46:54 UTC) #3
NGG
On 2016/02/13 16:46:54, tfarina wrote: > Btw. From which base change is this necessary? base/trace_event/process_memory_{maps,totals}_dump_provider.cc ...
4 years, 10 months ago (2016-02-13 18:35:30 UTC) #4
tfarina
https://codereview.chromium.org/1692303004/diff/80001/tools/gn/bootstrap/base/generated_build_date.h File tools/gn/bootstrap/base/generated_build_date.h (right): https://codereview.chromium.org/1692303004/diff/80001/tools/gn/bootstrap/base/generated_build_date.h#newcode6 tools/gn/bootstrap/base/generated_build_date.h:6: #error BUILD_DATE must be defined by bootstrap.py Why do ...
4 years, 10 months ago (2016-02-14 20:10:59 UTC) #5
NGG
https://codereview.chromium.org/1692303004/diff/80001/tools/gn/bootstrap/base/generated_build_date.h File tools/gn/bootstrap/base/generated_build_date.h (right): https://codereview.chromium.org/1692303004/diff/80001/tools/gn/bootstrap/base/generated_build_date.h#newcode6 tools/gn/bootstrap/base/generated_build_date.h:6: #error BUILD_DATE must be defined by bootstrap.py On 2016/02/14 ...
4 years, 10 months ago (2016-02-15 13:06:16 UTC) #7
brettw
Can bootstrap.py just generate the file instead?
4 years, 10 months ago (2016-02-15 23:55:02 UTC) #8
tfarina
On 2016/02/15 23:55:02, brettw wrote: > Can bootstrap.py just generate the file instead? I was ...
4 years, 10 months ago (2016-02-16 14:42:09 UTC) #9
tfarina
https://codereview.chromium.org/1692303004/diff/100001/tools/gn/bootstrap/base/generated_build_date.h File tools/gn/bootstrap/base/generated_build_date.h (right): https://codereview.chromium.org/1692303004/diff/100001/tools/gn/bootstrap/base/generated_build_date.h#newcode1 tools/gn/bootstrap/base/generated_build_date.h:1: // Copyright 2016 The Chromium Authors. All rights reserved. ...
4 years, 10 months ago (2016-02-16 14:47:05 UTC) #10
NGG
On 2016/02/16 14:47:05, tfarina wrote: > https://codereview.chromium.org/1692303004/diff/100001/tools/gn/bootstrap/base/generated_build_date.h > File tools/gn/bootstrap/base/generated_build_date.h (right): > > https://codereview.chromium.org/1692303004/diff/100001/tools/gn/bootstrap/base/generated_build_date.h#newcode1 > ...
4 years, 10 months ago (2016-02-16 15:19:34 UTC) #11
tfarina
I think this is in a shape good to go now. Thanks for going through ...
4 years, 10 months ago (2016-02-16 17:35:57 UTC) #12
brettw
https://codereview.chromium.org/1692303004/diff/140001/tools/gn/bootstrap/bootstrap.py File tools/gn/bootstrap/bootstrap.py (right): https://codereview.chromium.org/1692303004/diff/140001/tools/gn/bootstrap/bootstrap.py#newcode121 tools/gn/bootstrap/bootstrap.py:121: if is_mac: I think this should be always run, ...
4 years, 10 months ago (2016-02-16 21:01:48 UTC) #13
NGG
On 2016/02/16 21:01:48, brettw wrote: > https://codereview.chromium.org/1692303004/diff/140001/tools/gn/bootstrap/bootstrap.py > File tools/gn/bootstrap/bootstrap.py (right): > > https://codereview.chromium.org/1692303004/diff/140001/tools/gn/bootstrap/bootstrap.py#newcode121 > ...
4 years, 10 months ago (2016-02-17 09:05:51 UTC) #14
tfarina
https://codereview.chromium.org/1692303004/diff/160001/tools/gn/bootstrap/bootstrap.py File tools/gn/bootstrap/bootstrap.py (right): https://codereview.chromium.org/1692303004/diff/160001/tools/gn/bootstrap/bootstrap.py#newcode123 tools/gn/bootstrap/bootstrap.py:123: # That file is only included for Mac builds ...
4 years, 10 months ago (2016-02-17 12:45:15 UTC) #15
brettw
LGTM with Thiago's suggested comment fix.
4 years, 10 months ago (2016-02-17 18:31:10 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1692303004/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1692303004/180001
4 years, 10 months ago (2016-02-18 09:33:11 UTC) #19
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 10 months ago (2016-02-18 09:59:31 UTC) #21
commit-bot: I haz the power
Patchset 10 (id:??) landed as https://crrev.com/cda4afd7efda6e3034d58d9f375b01ff3f36d220 Cr-Commit-Position: refs/heads/master@{#376133}
4 years, 10 months ago (2016-02-18 10:00:37 UTC) #23
tfarina
https://codereview.chromium.org/1692303004/diff/180001/tools/gn/bootstrap/bootstrap.py File tools/gn/bootstrap/bootstrap.py (right): https://codereview.chromium.org/1692303004/diff/180001/tools/gn/bootstrap/bootstrap.py#newcode121 tools/gn/bootstrap/bootstrap.py:121: if is_mac: Wait, why is this only for Mac? ...
4 years, 10 months ago (2016-02-18 22:47:54 UTC) #24
NGG
https://codereview.chromium.org/1692303004/diff/180001/tools/gn/bootstrap/bootstrap.py File tools/gn/bootstrap/bootstrap.py (right): https://codereview.chromium.org/1692303004/diff/180001/tools/gn/bootstrap/bootstrap.py#newcode121 tools/gn/bootstrap/bootstrap.py:121: if is_mac: On 2016/02/18 22:47:54, tfarina wrote: > Wait, ...
4 years, 10 months ago (2016-02-18 23:31:49 UTC) #25
brettw
https://codereview.chromium.org/1692303004/diff/180001/tools/gn/bootstrap/bootstrap.py File tools/gn/bootstrap/bootstrap.py (right): https://codereview.chromium.org/1692303004/diff/180001/tools/gn/bootstrap/bootstrap.py#newcode121 tools/gn/bootstrap/bootstrap.py:121: if is_mac: On 2016/02/18 23:31:48, NGG wrote: > On ...
4 years, 10 months ago (2016-02-19 22:13:48 UTC) #26
NGG
4 years, 10 months ago (2016-02-20 14:58:44 UTC) #27
Message was sent while issue was closed.
https://codereview.chromium.org/1692303004/diff/180001/tools/gn/bootstrap/boo...
File tools/gn/bootstrap/bootstrap.py (right):

https://codereview.chromium.org/1692303004/diff/180001/tools/gn/bootstrap/boo...
tools/gn/bootstrap/bootstrap.py:121: if is_mac:
On 2016/02/19 22:13:48, brettw wrote:
> On 2016/02/18 23:31:48, NGG wrote:
> > On 2016/02/18 22:47:54, tfarina wrote:
> > > Wait, why is this only for Mac? It is not included conditionaly through
#if
> > > defined(OS_MAC) in base/build_time.cc.
> > >
https://chromium.googlesource.com/chromium/src/+/master/base/build_time.cc#8
> > 
> > Because build_time.cc is not compiled for non-mac targets (see below at line
> > 388)
> 
> This seems wrong. Why did you add build_time.cc only for Mac? It's
> unconditionally compiled in Chrome.

It's only needed on Mac because //base/memory/shared_memory_mac.cc includes
//base/metrics/field_trial.h and that has additional dependencies. It's not
needed on Linux for compiling GN.

Powered by Google App Engine
This is Rietveld 408576698