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

Issue 2198433004: Make get_label_info take into account the toolchain for target_gen_dir (Closed)

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

Description

Make get_label_info take into account the toolchain for target_gen_dir Previously get_label_info(<label>, "target_gen_dir") discarded toolchain information for the <label> and used the current toolchain. This makes this query useless for anything but the current toolchain. The other label info categories included this properly. The actual bugfix is passing label.GetToolchainLabel() for the "target_gen_dir" case in function_get_label_info. This is tested by the new test in function-get_label_info_unittest.cc which was missing a test for this case. Adding the toolchain label required adding more variants of the directory getters in filesystem_utils which were already passed the point of reason in terms of number of variants taking and returning slightly different but related things. So this does a refactoring of the directory getter functions there to rationalize them among 4 classes of functions which can return one of two things, and a helper class that generalizes the input with whatever information the caller has. The rest of the changes are updates to the callers for this new system. There are some additional cases added to filesystem_utils_unittest.cc to test more combinations. BUG=632412 Committed: https://crrev.com/8d6e145e3c939895491b83219583dfef48a94fac Cr-Commit-Position: refs/heads/master@{#409334}

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Total comments: 4

Patch Set 4 : Remove unused static function #

Unified diffs Side-by-side diffs Delta from patch set Stats (+352 lines, -342 lines) Patch
M tools/gn/filesystem_utils.h View 1 2 1 chunk +80 lines, -37 lines 0 comments Download
M tools/gn/filesystem_utils.cc View 2 chunks +90 lines, -121 lines 0 comments Download
M tools/gn/filesystem_utils_unittest.cc View 3 chunks +109 lines, -108 lines 0 comments Download
M tools/gn/function_get_label_info.cc View 1 2 3 2 chunks +13 lines, -25 lines 0 comments Download
M tools/gn/function_get_label_info_unittest.cc View 1 1 chunk +8 lines, -2 lines 0 comments Download
M tools/gn/function_get_path_info.cc View 2 chunks +9 lines, -9 lines 0 comments Download
M tools/gn/ninja_binary_target_writer.cc View 2 chunks +3 lines, -5 lines 0 comments Download
M tools/gn/ninja_create_bundle_target_writer.cc View 2 chunks +2 lines, -6 lines 0 comments Download
M tools/gn/ninja_target_writer.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M tools/gn/ninja_utils.cc View 1 1 chunk +6 lines, -4 lines 0 comments Download
M tools/gn/scope_per_file_provider.cc View 3 chunks +11 lines, -5 lines 0 comments Download
M tools/gn/substitution_writer.cc View 3 chunks +8 lines, -7 lines 0 comments Download
M tools/gn/target.cc View 1 chunk +2 lines, -1 line 0 comments Download
M tools/gn/visual_studio_writer.cc View 3 chunks +9 lines, -8 lines 0 comments Download

Messages

Total messages: 23 (15 generated)
brettw
.
4 years, 4 months ago (2016-08-01 21:29:24 UTC) #1
brettw
.
4 years, 4 months ago (2016-08-01 21:50:55 UTC) #5
brettw
Instructions for review: check function_get_label_info and corresponding test file. Then filesystem_utils.h for the directory computation ...
4 years, 4 months ago (2016-08-01 21:53:55 UTC) #9
brettw
Remove unused static function
4 years, 4 months ago (2016-08-02 16:41:31 UTC) #12
sdefresne
lgtm
4 years, 4 months ago (2016-08-02 20:30:56 UTC) #17
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/2198433004/60001
4 years, 4 months ago (2016-08-02 21:34:48 UTC) #19
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 4 months ago (2016-08-02 21:40:38 UTC) #21
commit-bot: I haz the power
4 years, 4 months ago (2016-08-02 21:43:41 UTC) #23
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/8d6e145e3c939895491b83219583dfef48a94fac
Cr-Commit-Position: refs/heads/master@{#409334}

Powered by Google App Engine
This is Rietveld 408576698