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

Issue 2485523002: gn: Make generation of main build.ninja file deterministic. (Closed)

Created:
4 years, 1 month ago by Nico
Modified:
4 years, 1 month ago
Reviewers:
brettw
CC:
chromium-reviews, Dirk Pranke, tfarina, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

gn: Make generation of main build.ninja file deterministic. Follow-up to https://codereview.chromium.org/1494883002/ which either missed the main build.ninja file, or build.ninja file writing has since gotten nondetermistic again. Fixes three cases of nondeterminism in build.ninja: * Order of pools * Order of subninjas for each toolchain * Order of phony targets in build.ninja BUG=662750, 565075 Committed: https://crrev.com/8c2865318628b91312ea2bfa065590e3dc4f920a Cr-Commit-Position: refs/heads/master@{#430416}

Patch Set 1 #

Total comments: 3

Patch Set 2 : forgot to upload .h change #

Patch Set 3 : linux #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -19 lines) Patch
M tools/gn/builder.h View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M tools/gn/ninja_build_writer.h View 1 2 chunks +8 lines, -8 lines 0 comments Download
M tools/gn/ninja_build_writer.cc View 4 chunks +30 lines, -7 lines 0 comments Download
M tools/gn/ninja_build_writer_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 22 (17 generated)
Nico
https://codereview.chromium.org/2485523002/diff/1/tools/gn/builder.h File tools/gn/builder.h (right): https://codereview.chromium.org/2485523002/diff/1/tools/gn/builder.h#newcode133 tools/gn/builder.h:133: typedef std::map<Label, BuilderRecord*> RecordMap; Label has an operator<, so ...
4 years, 1 month ago (2016-11-06 22:18:10 UTC) #3
brettw
lgtm
4 years, 1 month ago (2016-11-07 22:36:19 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2485523002/40001
4 years, 1 month ago (2016-11-07 22:59:29 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 1 month ago (2016-11-07 23:30:15 UTC) #20
commit-bot: I haz the power
4 years, 1 month ago (2016-11-07 23:36:12 UTC) #22
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/8c2865318628b91312ea2bfa065590e3dc4f920a
Cr-Commit-Position: refs/heads/master@{#430416}

Powered by Google App Engine
This is Rietveld 408576698