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

Issue 1316653003: GN get_label_info support toolchains for target_out_dir. (Closed)

Created:
5 years, 3 months ago by brettw
Modified:
5 years, 3 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.

Description

GN get_label_info support toolchains for target_out_dir. Previously get_label_info would return directories that used the current toolchain's root build directory. This would return an incorrect result if a caller manually specifies a toolchain in the label to resolve. This patch adds a variant of the GetTargetOutputDir function that takes the necessary information, and changes the old signatures to use the new more complicated one as the underlying call. Adds some unit tests for this and related cases in the get_label_info tests. Updates some tests tests. The above changes exposed some cases where the toolchain was not being set up properly in the test. This additionally caused the toolchain prefixes to be missing from the tool names in the Windows PCH tests. The tests are now updated with the correct toolchain setup and expected output. This was a bug in the tests only. BUG=524587 Committed: https://crrev.com/6aeaa45ae77e50206032691bdedebffdc42f73d8 Cr-Commit-Position: refs/heads/master@{#345485}

Patch Set 1 #

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -20 lines) Patch
M tools/gn/filesystem_utils.h View 1 chunk +9 lines, -0 lines 0 comments Download
M tools/gn/filesystem_utils.cc View 3 chunks +27 lines, -7 lines 0 comments Download
M tools/gn/filesystem_utils_unittest.cc View 2 chunks +5 lines, -0 lines 0 comments Download
M tools/gn/function_get_label_info.cc View 2 chunks +16 lines, -7 lines 0 comments Download
M tools/gn/function_get_label_info_unittest.cc View 1 3 chunks +10 lines, -1 line 0 comments Download
M tools/gn/ninja_binary_target_writer_unittest.cc View 3 chunks +7 lines, -5 lines 0 comments Download

Messages

Total messages: 11 (4 generated)
brettw
5 years, 3 months ago (2015-08-25 20:58:07 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1316653003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1316653003/20001
5 years, 3 months ago (2015-08-25 20:59:04 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-08-25 21:14:55 UTC) #6
jvoung (off chromium)
LGTM thanks
5 years, 3 months ago (2015-08-25 22:07:38 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1316653003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1316653003/20001
5 years, 3 months ago (2015-08-25 23:37:46 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 3 months ago (2015-08-25 23:43:33 UTC) #10
commit-bot: I haz the power
5 years, 3 months ago (2015-08-25 23:44:26 UTC) #11
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/6aeaa45ae77e50206032691bdedebffdc42f73d8
Cr-Commit-Position: refs/heads/master@{#345485}

Powered by Google App Engine
This is Rietveld 408576698