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

Issue 301973005: GN only writes files if they've changed (Closed)

Created:
6 years, 6 months ago by brettw
Modified:
6 years, 6 months ago
Reviewers:
Nico
CC:
chromium-reviews, tfarina
Visibility:
Public.

Description

GN only writes files if they've changed The write_file function should only actually update the file contents if the contents have changed to avoid unnecessary rebuilds of targets that depend on the written file. R=thakis@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=273855

Patch Set 1 #

Patch Set 2 : #

Total comments: 5

Patch Set 3 : Reviuew comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+104 lines, -5 lines) Patch
M tools/gn/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M tools/gn/function_write_file.cc View 2 chunks +16 lines, -5 lines 0 comments Download
A tools/gn/function_write_file_unittest.cc View 1 2 1 chunk +86 lines, -0 lines 0 comments Download
M tools/gn/gn.gyp View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
brettw
6 years, 6 months ago (2014-05-29 22:15:00 UTC) #1
Nico
lgtm! https://codereview.chromium.org/301973005/diff/20001/tools/gn/function_write_file_unittest.cc File tools/gn/function_write_file_unittest.cc (right): https://codereview.chromium.org/301973005/diff/20001/tools/gn/function_write_file_unittest.cc#newcode1 tools/gn/function_write_file_unittest.cc:1: // Copyright 2014 The Chromium Authors. All rights ...
6 years, 6 months ago (2014-05-29 23:33:35 UTC) #2
brettw
https://codereview.chromium.org/301973005/diff/20001/tools/gn/function_write_file_unittest.cc File tools/gn/function_write_file_unittest.cc (right): https://codereview.chromium.org/301973005/diff/20001/tools/gn/function_write_file_unittest.cc#newcode1 tools/gn/function_write_file_unittest.cc:1: // Copyright 2014 The Chromium Authors. All rights reserved. ...
6 years, 6 months ago (2014-05-30 00:51:49 UTC) #3
brettw
6 years, 6 months ago (2014-05-30 16:24:42 UTC) #4
Message was sent while issue was closed.
Committed patchset #3 manually as r273855 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698