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

Issue 1256043006: Reference written files relatively when possible. (Closed)

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

Description

Reference written files relatively when possible. The intermediately generated files are children of the output build directory and shouldn't need long absolute path references that change more often than necessary. BUG=49621 TEST=Equivalence of build files, see https://code.google.com/p/chromium/issues/detail?id=469621#c3 Committed: https://crrev.com/d79f1ac6d572f795fd8e2522fe4a731d1f66260c Cr-Commit-Position: refs/heads/master@{#341768}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Simplify to use RebasePath #

Patch Set 3 : Re-add escaping, drop line #

Patch Set 4 : Add windows type coercion. #

Patch Set 5 : More windows type fixing #

Patch Set 6 : More windows type fixing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -3 lines) Patch
M tools/gn/ninja_build_writer.cc View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 23 (7 generated)
Peter Mayo
WDYT?
5 years, 4 months ago (2015-07-31 01:57:14 UTC) #2
Dirk Pranke
This looks plausible to me, but Brett should review it. I have a few questions, ...
5 years, 4 months ago (2015-07-31 19:03:54 UTC) #4
Peter Mayo
https://codereview.chromium.org/1256043006/diff/1/tools/gn/ninja_build_writer.cc File tools/gn/ninja_build_writer.cc (right): https://codereview.chromium.org/1256043006/diff/1/tools/gn/ninja_build_writer.cc#newcode166 tools/gn/ninja_build_writer.cc:166: written_file.Resolve(build_settings_->root_path()), path_escaping); Oops, forgot to change to UTF8.
5 years, 4 months ago (2015-07-31 19:08:07 UTC) #5
brettw
https://codereview.chromium.org/1256043006/diff/1/tools/gn/ninja_build_writer.cc File tools/gn/ninja_build_writer.cc (right): https://codereview.chromium.org/1256043006/diff/1/tools/gn/ninja_build_writer.cc#newcode159 tools/gn/ninja_build_writer.cc:159: base::FilePath::StringType fileref = ComputeStringInOutputDir( I think RebasePath in filesystem_utils.h ...
5 years, 4 months ago (2015-07-31 23:36:55 UTC) #6
Peter Mayo
Simplify to use RebasePath
5 years, 4 months ago (2015-07-31 23:49:26 UTC) #7
Peter Mayo
Re-add escaping, drop line
5 years, 4 months ago (2015-07-31 23:57:42 UTC) #9
Peter Mayo
On 2015/07/31 23:36:55, brettw wrote: > https://codereview.chromium.org/1256043006/diff/1/tools/gn/ninja_build_writer.cc > File tools/gn/ninja_build_writer.cc (right): > > https://codereview.chromium.org/1256043006/diff/1/tools/gn/ninja_build_writer.cc#newcode159 > ...
5 years, 4 months ago (2015-08-01 00:01:58 UTC) #10
brettw
That was short! LGTM
5 years, 4 months ago (2015-08-01 20:18:53 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1256043006/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1256043006/60001
5 years, 4 months ago (2015-08-04 13:48:14 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/66481)
5 years, 4 months ago (2015-08-04 13:59:18 UTC) #15
Peter Mayo
More windows type fixing
5 years, 4 months ago (2015-08-04 17:29:44 UTC) #16
Peter Mayo
More windows type fixing
5 years, 4 months ago (2015-08-04 19:12:36 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1256043006/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1256043006/120001
5 years, 4 months ago (2015-08-04 19:37:49 UTC) #20
Peter Mayo
PTAL to make sure you are OK about where the conversions to UTF8 went. I ...
5 years, 4 months ago (2015-08-04 19:43:26 UTC) #21
commit-bot: I haz the power
Committed patchset #6 (id:120001)
5 years, 4 months ago (2015-08-04 19:54:10 UTC) #22
commit-bot: I haz the power
5 years, 4 months ago (2015-08-04 19:56:01 UTC) #23
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/d79f1ac6d572f795fd8e2522fe4a731d1f66260c
Cr-Commit-Position: refs/heads/master@{#341768}

Powered by Google App Engine
This is Rietveld 408576698