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

Issue 2483713003: gn: Diag on distinct toolchains with the same name. (Closed)

Created:
4 years, 1 month ago by Nico
Modified:
4 years, 1 month ago
Reviewers:
Dirk Pranke, brettw
CC:
chromium-reviews, Dirk Pranke, tfarina, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

gn: Diag on distinct toolchains with the same name. Previously, toolchains with the same name used to silently write to the same output directory and clobber each others generated .ninja files. After this patch, this still happens, but gn writes an error message while writing the final build.ninja file. Example output: ERROR at //build/toolchain/mac2/BUILD.gn:51:3: Duplicate toolchain. toolchain(target_name) { ^----------------------- Two or more toolchains write to the same directory: //out/gn1/clang_x64/ This can be fixed by making sure that distinct toolchains have distinct names. See //build/toolchain/mac3/BUILD.gn:51:3: Previous toolchain. toolchain(target_name) { ^----------------------- Depends on https://codereview.chromium.org/2485523002/ BUG=661054 Committed: https://crrev.com/eab6e2d58dc3b71e094ff58d822980ca3473caf8 Cr-Commit-Position: refs/heads/master@{#430473}

Patch Set 1 #

Patch Set 2 : with testing code; tweaked diag #

Patch Set 3 : remove testing code again #

Total comments: 2

Patch Set 4 : comment #

Patch Set 5 : rebase #

Patch Set 6 : lol msvc #

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

Messages

Total messages: 21 (12 generated)
Nico
4 years, 1 month ago (2016-11-06 23:10:33 UTC) #4
Dirk Pranke
lgtm, but brettw@ should review.
4 years, 1 month ago (2016-11-07 18:25:00 UTC) #6
brettw
lgtm https://codereview.chromium.org/2483713003/diff/40001/tools/gn/ninja_build_writer.cc File tools/gn/ninja_build_writer.cc (right): https://codereview.chromium.org/2483713003/diff/40001/tools/gn/ninja_build_writer.cc#newcode141 tools/gn/ninja_build_writer.cc:141: "This is can often be fixed by making ...
4 years, 1 month ago (2016-11-07 19:22:36 UTC) #7
Nico
thanks! https://codereview.chromium.org/2483713003/diff/40001/tools/gn/ninja_build_writer.cc File tools/gn/ninja_build_writer.cc (right): https://codereview.chromium.org/2483713003/diff/40001/tools/gn/ninja_build_writer.cc#newcode141 tools/gn/ninja_build_writer.cc:141: "This is can often be fixed by making ...
4 years, 1 month ago (2016-11-08 00:00:40 UTC) #9
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/2483713003/80001
4 years, 1 month ago (2016-11-08 00:01:23 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/327267) win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, ...
4 years, 1 month ago (2016-11-08 00:15:46 UTC) #14
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/2483713003/100001
4 years, 1 month ago (2016-11-08 01:30:14 UTC) #17
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 1 month ago (2016-11-08 01:45:30 UTC) #19
commit-bot: I haz the power
4 years, 1 month ago (2016-11-08 01:57:25 UTC) #21
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/eab6e2d58dc3b71e094ff58d822980ca3473caf8
Cr-Commit-Position: refs/heads/master@{#430473}

Powered by Google App Engine
This is Rietveld 408576698