|
|
Chromium Code Reviews|
Created:
5 years, 4 months ago by Peter Mayo Modified:
5 years, 4 months ago CC:
chromium-reviews, tfarina Base URL:
https://chromium.googlesource.com/chromium/src.git@master Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionReference 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 #Messages
Total messages: 23 (7 generated)
petermayo@chromium.org changed reviewers: + dpranke@chromium.org
WDYT?
dpranke@chromium.org changed reviewers: + brettw@chromium.org
This looks plausible to me, but Brett should review it. I have a few questions, but let's see what he says instead.
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... tools/gn/ninja_build_writer.cc:166: written_file.Resolve(build_settings_->root_path()), path_escaping); Oops, forgot to change to UTF8.
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... tools/gn/ninja_build_writer.cc:159: base::FilePath::StringType fileref = ComputeStringInOutputDir( I think RebasePath in filesystem_utils.h will handle all cases of converting a SourceFile string to be relative to a given directory. If not, we should fix it.
Simplify to use RebasePath
Patchset #3 (id:40001) has been deleted
Re-add escaping, drop line
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... > tools/gn/ninja_build_writer.cc:159: base::FilePath::StringType fileref = > ComputeStringInOutputDir( > I think RebasePath in filesystem_utils.h will handle all cases of converting a > SourceFile string to be relative to a given directory. If not, we should fix it. Good call, I can't remember now why I ruled it out earlier, but what it came back around to fits the definition just fine. (IIRC I spent some time doing the normalization in the function_write_file, where the validation gets called, and redoing it seemed wasteful) PTAL
That was short! LGTM
The CQ bit was checked by petermayo@chromium.org
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
The CQ bit was unchecked by commit-bot@chromium.org
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_comp...)
More windows type fixing
More windows type fixing
The CQ bit was checked by petermayo@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from brettw@chromium.org Link to the patchset: https://codereview.chromium.org/1256043006/#ps120001 (title: "More windows type fixing")
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
PTAL to make sure you are OK about where the conversions to UTF8 went. I ended up using similar code in ninja_target_writer.cc as a precedent. I chose not to extend path_output to handle the case of outputing lists of SourceFiles like it does OutputFiles today.
Message was sent while issue was closed.
Committed patchset #6 (id:120001)
Message was sent while issue was closed.
Patchset 6 (id:??) landed as https://crrev.com/d79f1ac6d572f795fd8e2522fe4a731d1f66260c Cr-Commit-Position: refs/heads/master@{#341768} |
