|
|
DescriptionUse the /WX flag to have link warnings treated as errors.
Link steps with warnings typically lead to working binaries, but warnings can indicate dependency issues in the codebase, slow down builds, and otherwise just make it harder to find more relevant output in build logs.
This CL also adds exceptions to ignore certain linker warnings under specific configurations and targets.
BUG=659007, 676418, 676417, 654776
Committed: https://crrev.com/c868aae8f9b8d51461afff79064c75339e6ce30c
Cr-Commit-Position: refs/heads/master@{#440600}
Patch Set 1 #Patch Set 2 : Move ldflags definition #Patch Set 3 : gn format #Patch Set 4 : Add exclusions for noisy targets. #Patch Set 5 : Fix /ignores to apply only to Windows. #Patch Set 6 : Remove exceptions #Patch Set 7 : Rebase #Patch Set 8 : Restore exceptions and update comments #
Total comments: 4
Patch Set 9 : Address review comments #Patch Set 10 : Move /WX setter into :compiler and respect fatal_linker_warnings #
Messages
Total messages: 66 (50 generated)
The CQ bit was checked by wez@chromium.org to run a CQ dry run
Dry run: 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
Dry run: Try jobs failed on following builders: win_chromium_compile_dbg_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_comp...)
Description was changed from ========== Use the /WX flag to have link warnings treated as errors. BUG=659007 ========== to ========== Use the /WX flag to have link warnings treated as errors. Link steps with warnings typically lead to working binaries, but warnings can indicate dependency issues in the codebase, slow down builds, and otherwise just make it harder to find more relevant output in build logs. BUG=659007 ==========
wez@chromium.org changed reviewers: + brucedawson@chromium.org
The CQ bit was checked by wez@chromium.org to run a CQ dry run
Dry run: 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
Dry run: 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_...)
The CQ bit was checked by wez@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from ========== Use the /WX flag to have link warnings treated as errors. Link steps with warnings typically lead to working binaries, but warnings can indicate dependency issues in the codebase, slow down builds, and otherwise just make it harder to find more relevant output in build logs. BUG=659007 ========== to ========== Use the /WX flag to have link warnings treated as errors. Link steps with warnings typically lead to working binaries, but warnings can indicate dependency issues in the codebase, slow down builds, and otherwise just make it harder to find more relevant output in build logs. In addition to treating link warnings and errors in all targets, via the sdk_link and common_linker_setup base targets, explicit exceptions are added for several targets which currently raise link warnings. BUG=659007 ==========
wez@chromium.org changed reviewers: + dalecurtis@chromium.org
Bruce suggested having '/WX' expressed via a configuration target which would be included in all targets by default, and explicitly omitted from problem targets. This CL instead applies /WX universally, and suppresses individual warnings under specific configurations of targets. This has the advantage of being fine-grained, but the disadvantage of causing those warnings not even to be logged. Would be interested on your input on the two approaches :)
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_compile_dbg_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
I would have guessed we already had this. I seem to recall failures on POSIX at least. Seems fine to me.
lgtm
Description was changed from ========== Use the /WX flag to have link warnings treated as errors. Link steps with warnings typically lead to working binaries, but warnings can indicate dependency issues in the codebase, slow down builds, and otherwise just make it harder to find more relevant output in build logs. In addition to treating link warnings and errors in all targets, via the sdk_link and common_linker_setup base targets, explicit exceptions are added for several targets which currently raise link warnings. BUG=659007 ========== to ========== Use the /WX flag to have link warnings treated as errors. Link steps with warnings typically lead to working binaries, but warnings can indicate dependency issues in the codebase, slow down builds, and otherwise just make it harder to find more relevant output in build logs. In addition to treating link warnings and errors in all targets, via the sdk_link and common_linker_setup base targets, explicit exceptions are added for several targets which currently raise link warnings. BUG=659007, 654776 ==========
The CQ bit was checked by wez@chromium.org to run a CQ dry run
Dry run: 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
Dry run: Try jobs failed on following builders: linux_chromium_compile_dbg_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
Description was changed from ========== Use the /WX flag to have link warnings treated as errors. Link steps with warnings typically lead to working binaries, but warnings can indicate dependency issues in the codebase, slow down builds, and otherwise just make it harder to find more relevant output in build logs. In addition to treating link warnings and errors in all targets, via the sdk_link and common_linker_setup base targets, explicit exceptions are added for several targets which currently raise link warnings. BUG=659007, 654776 ========== to ========== Use the /WX flag to have link warnings treated as errors. Link steps with warnings typically lead to working binaries, but warnings can indicate dependency issues in the codebase, slow down builds, and otherwise just make it harder to find more relevant output in build logs. BUG=659007, 654776 ==========
Description was changed from ========== Use the /WX flag to have link warnings treated as errors. Link steps with warnings typically lead to working binaries, but warnings can indicate dependency issues in the codebase, slow down builds, and otherwise just make it harder to find more relevant output in build logs. BUG=659007, 654776 ========== to ========== Use the /WX flag to have link warnings treated as errors. Link steps with warnings typically lead to working binaries, but warnings can indicate dependency issues in the codebase, slow down builds, and otherwise just make it harder to find more relevant output in build logs. BUG=659007 ==========
The CQ bit was checked by wez@chromium.org to run a CQ dry run
Dry run: 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 wez@chromium.org
The CQ bit was checked by wez@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
brucedawson: PTAL - the exceptions could all be removed, thanks to a dependency change in //ui/aura which just landed!
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: win_clang on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_clang/builds/...)
Description was changed from ========== Use the /WX flag to have link warnings treated as errors. Link steps with warnings typically lead to working binaries, but warnings can indicate dependency issues in the codebase, slow down builds, and otherwise just make it harder to find more relevant output in build logs. BUG=659007 ========== to ========== Use the /WX flag to have link warnings treated as errors. Link steps with warnings typically lead to working binaries, but warnings can indicate dependency issues in the codebase, slow down builds, and otherwise just make it harder to find more relevant output in build logs. This CL also adds exceptions to ignore certain linker warnings under specific configurations and targets. BUG=659007, 676418, 676417, 654776 ==========
On 2016/12/21 19:18:43, Wez wrote: > brucedawson: PTAL - the exceptions could all be removed, thanks to a dependency > change in //ui/aura which just landed! Scratch that; turns out that changing ldflags for a target doesn't force it to re-link.
The CQ bit was checked by wez@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
wez@chromium.org changed reviewers: + jochen@chromium.org
jochen: PTAL the build/ and third_party/WebKit changes, for OWNERS.
lgtm with one fix needed. https://codereview.chromium.org/2581893002/diff/140001/build/config/win/BUILD.gn File build/config/win/BUILD.gn (right): https://codereview.chromium.org/2581893002/diff/140001/build/config/win/BUILD... build/config/win/BUILD.gn:105: ldflags += [ This is wrong. "+=" should only be allowed if ldflags was set earlier - the conditional setting of ldflags at line 97 doesn't count. TL;DR - this needs to be "=" instead of "+=". https://codereview.chromium.org/2581893002/diff/140001/build/config/win/BUILD... build/config/win/BUILD.gn:251: ldflags += [ Odd that this is separate. For historical reasons I assume (since it is VC++ 2015 only). Feel free to merge to clean this up. Or ignore.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...)
https://codereview.chromium.org/2581893002/diff/140001/build/config/win/BUILD.gn File build/config/win/BUILD.gn (right): https://codereview.chromium.org/2581893002/diff/140001/build/config/win/BUILD... build/config/win/BUILD.gn:105: ldflags += [ On 2016/12/21 22:22:53, brucedawson wrote: > This is wrong. "+=" should only be allowed if ldflags was set earlier - the > conditional setting of ldflags at line 97 doesn't count. > > TL;DR - this needs to be "=" instead of "+=". Done. https://codereview.chromium.org/2581893002/diff/140001/build/config/win/BUILD... build/config/win/BUILD.gn:251: ldflags += [ On 2016/12/21 22:22:53, brucedawson wrote: > Odd that this is separate. For historical reasons I assume (since it is VC++ > 2015 only). Feel free to merge to clean this up. Or ignore. Done.
The CQ bit was checked by wez@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from dalecurtis@chromium.org, brucedawson@chromium.org Link to the patchset: https://codereview.chromium.org/2581893002/#ps160001 (title: "Address review comments")
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: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presub...)
jam@chromium.org changed reviewers: + jam@chromium.org
lgtm
lgtm
FWIW win_clang failure isn't Clang-specific, but we only build "all" (and thereby build v8:cctest) under Clang. I have a CL to suppress that warning in-flight, will land this as soon as V8 rolls with it.
The CQ bit was checked by wez@chromium.org to run a CQ dry run
Dry run: 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
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by wez@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from jochen@chromium.org, jam@chromium.org, dalecurtis@chromium.org, brucedawson@chromium.org Link to the patchset: https://codereview.chromium.org/2581893002/#ps180001 (title: "Move /WX setter into :compiler and respect fatal_linker_warnings")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch. Bot data: {"patchset_id": 180001, "attempt_start_ts": 1482480325228130, "parent_rev": "e8fe54fe0e3dd9a6f655fa4bef972ff752dece38", "commit_rev": "504a932ae269517ad06ca69d4cf0fd507e02e508"}
CQ is committing da patch. Bot data: {"patchset_id": 180001, "attempt_start_ts": 1482480325228130, "parent_rev": "881ffad4116adb90699669eb944d5551cf6ac06c", "commit_rev": "b226c71fbd3c5d558caf79647e52f422eb262b27"}
Message was sent while issue was closed.
Description was changed from ========== Use the /WX flag to have link warnings treated as errors. Link steps with warnings typically lead to working binaries, but warnings can indicate dependency issues in the codebase, slow down builds, and otherwise just make it harder to find more relevant output in build logs. This CL also adds exceptions to ignore certain linker warnings under specific configurations and targets. BUG=659007, 676418, 676417, 654776 ========== to ========== Use the /WX flag to have link warnings treated as errors. Link steps with warnings typically lead to working binaries, but warnings can indicate dependency issues in the codebase, slow down builds, and otherwise just make it harder to find more relevant output in build logs. This CL also adds exceptions to ignore certain linker warnings under specific configurations and targets. BUG=659007, 676418, 676417, 654776 Review-Url: https://codereview.chromium.org/2581893002 ==========
Message was sent while issue was closed.
Committed patchset #10 (id:180001)
Message was sent while issue was closed.
Description was changed from ========== Use the /WX flag to have link warnings treated as errors. Link steps with warnings typically lead to working binaries, but warnings can indicate dependency issues in the codebase, slow down builds, and otherwise just make it harder to find more relevant output in build logs. This CL also adds exceptions to ignore certain linker warnings under specific configurations and targets. BUG=659007, 676418, 676417, 654776 Review-Url: https://codereview.chromium.org/2581893002 ========== to ========== Use the /WX flag to have link warnings treated as errors. Link steps with warnings typically lead to working binaries, but warnings can indicate dependency issues in the codebase, slow down builds, and otherwise just make it harder to find more relevant output in build logs. This CL also adds exceptions to ignore certain linker warnings under specific configurations and targets. BUG=659007, 676418, 676417, 654776 Committed: https://crrev.com/c868aae8f9b8d51461afff79064c75339e6ce30c Cr-Commit-Position: refs/heads/master@{#440600} ==========
Message was sent while issue was closed.
Patchset 10 (id:??) landed as https://crrev.com/c868aae8f9b8d51461afff79064c75339e6ce30c Cr-Commit-Position: refs/heads/master@{#440600} |