|
|
Descriptiongn: 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 #Messages
Total messages: 21 (12 generated)
Description was changed from ========== gn: Diag on distinct toolchains with the same name. Depends on https://codereview.chromium.org/2485523002/ BUG=661054 ========== to ========== 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. 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 is can often 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 ==========
Description was changed from ========== 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. 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 is can often 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 ========== to ========== 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 is can often 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 ==========
thakis@chromium.org changed reviewers: + brettw@chromium.org
dpranke@chromium.org changed reviewers: + dpranke@chromium.org
lgtm, but brettw@ should review.
lgtm https://codereview.chromium.org/2483713003/diff/40001/tools/gn/ninja_build_wr... File tools/gn/ninja_build_writer.cc (right): https://codereview.chromium.org/2483713003/diff/40001/tools/gn/ninja_build_wr... tools/gn/ninja_build_writer.cc:141: "This is can often be fixed by making sure that distinct toolchains\n" "is can often" -> "can"
Description was changed from ========== 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 is can often 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 ========== to ========== 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 ==========
thanks! https://codereview.chromium.org/2483713003/diff/40001/tools/gn/ninja_build_wr... File tools/gn/ninja_build_writer.cc (right): https://codereview.chromium.org/2483713003/diff/40001/tools/gn/ninja_build_wr... tools/gn/ninja_build_writer.cc:141: "This is can often be fixed by making sure that distinct toolchains\n" On 2016/11/07 19:22:36, brettw (ping on IM after 24h) wrote: > "is can often" -> "can" Done.
The CQ bit was checked by thakis@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from dpranke@chromium.org, brettw@chromium.org Link to the patchset: https://codereview.chromium.org/2483713003/#ps80001 (title: "rebase")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
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_...) win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_...)
The CQ bit was checked by thakis@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from dpranke@chromium.org, brettw@chromium.org Link to the patchset: https://codereview.chromium.org/2483713003/#ps100001 (title: "lol msvc")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== 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 ========== to ========== 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 ==========
Message was sent while issue was closed.
Committed patchset #6 (id:100001)
Message was sent while issue was closed.
Description was changed from ========== 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 ========== to ========== 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} ==========
Message was sent while issue was closed.
Patchset 6 (id:??) landed as https://crrev.com/eab6e2d58dc3b71e094ff58d822980ca3473caf8 Cr-Commit-Position: refs/heads/master@{#430473} |