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

Issue 213353004: GN: Move towards only using / on Windows (Closed)

Created:
6 years, 8 months ago by scottmg
Modified:
6 years, 8 months ago
Reviewers:
brettw
CC:
chromium-reviews, erikwright+watch_chromium.org
Visibility:
Public.

Description

GN: Move towards only using / on Windows Remove most of the \ handling code, and start some normalization to / as necessary. Paths that come from actions, etc. aren't validated yet. This makes the Windows build get farther, but now it fails with things similar to: ninja: Entering directory `out_gn2' ninja: error: WriteFile(obj/third_party/re2/re2/re2.unicode_groups.obj.rsp): Unable to create file. No such file or directory Looks like we're not creating the subtree for ninja to write rsp files to? Not sure. This removes the last argument from rebase_path, so might have some migration issues in landing the binary. R=brettw@chromium.org BUG=354626 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=261311

Patch Set 1 #

Total comments: 1

Patch Set 2 : only generate / in various places #

Total comments: 4

Patch Set 3 : restore convert_slashes in output path, misc fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -114 lines) Patch
M base/files/file_path.h View 1 chunk +4 lines, -0 lines 0 comments Download
M base/files/file_path.cc View 1 2 1 chunk +8 lines, -2 lines 0 comments Download
M tools/gn/build_settings.cc View 1 2 2 chunks +6 lines, -6 lines 0 comments Download
M tools/gn/command_desc.cc View 1 chunk +0 lines, -1 line 0 comments Download
M tools/gn/filesystem_utils.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M tools/gn/filesystem_utils.cc View 1 2 1 chunk +0 lines, -6 lines 0 comments Download
M tools/gn/function_rebase_path.cc View 9 chunks +4 lines, -64 lines 0 comments Download
M tools/gn/function_rebase_path_unittest.cc View 2 chunks +9 lines, -16 lines 0 comments Download
M tools/gn/ninja_binary_target_writer.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M tools/gn/ninja_build_writer.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M tools/gn/ninja_helper.cc View 1 chunk +0 lines, -1 line 0 comments Download
M tools/gn/ninja_target_writer.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M tools/gn/ninja_toolchain_writer.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M tools/gn/setup.cc View 1 2 2 chunks +3 lines, -5 lines 0 comments Download
M tools/gn/source_dir.cc View 1 2 1 chunk +2 lines, -3 lines 0 comments Download
M tools/gn/source_file.cc View 1 2 1 chunk +2 lines, -3 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
scottmg
https://codereview.chromium.org/213353004/diff/1/base/files/file_path.h File base/files/file_path.h (right): https://codereview.chromium.org/213353004/diff/1/base/files/file_path.h#newcode379 base/files/file_path.h:379: FilePath NormalizePathSeparatorsTo(CharType separator) const; Another alternative could be to ...
6 years, 8 months ago (2014-04-02 00:23:38 UTC) #1
brettw
I think I would like to keep the "convert slashes" flag on PathOutput since we'll ...
6 years, 8 months ago (2014-04-02 17:34:28 UTC) #2
scottmg
Restored convert_slashes in PathOutput. https://codereview.chromium.org/213353004/diff/20001/base/files/file_path.cc File base/files/file_path.cc (right): https://codereview.chromium.org/213353004/diff/20001/base/files/file_path.cc#newcode1299 base/files/file_path.cc:1299: #if defined(FILE_PATH_USES_WIN_SEPARATORS) On 2014/04/02 17:34:28, ...
6 years, 8 months ago (2014-04-02 20:20:18 UTC) #3
brettw
lgtm
6 years, 8 months ago (2014-04-02 20:24:58 UTC) #4
scottmg
The CQ bit was checked by scottmg@chromium.org
6 years, 8 months ago (2014-04-02 20:30:38 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scottmg@chromium.org/213353004/60001
6 years, 8 months ago (2014-04-02 20:32:21 UTC) #6
commit-bot: I haz the power
6 years, 8 months ago (2014-04-03 07:45:47 UTC) #7
Message was sent while issue was closed.
Change committed as 261311

Powered by Google App Engine
This is Rietveld 408576698