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

Issue 2581893002: Use the /WX flag to have link warnings treated as errors. (Closed)

Created:
4 years ago by Wez
Modified:
3 years, 12 months ago
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

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}

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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -5 lines) Patch
M build/config/compiler/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M build/config/win/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -5 lines 0 comments Download
M media/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +8 lines, -0 lines 0 comments Download
M media/mojo/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +8 lines, -0 lines 0 comments Download
M media/mojo/services/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 66 (50 generated)
Wez
Bruce suggested having '/WX' expressed via a configuration target which would be included in all ...
4 years ago (2016-12-21 00:21:43 UTC) #15
DaleCurtis
I would have guessed we already had this. I seem to recall failures on POSIX ...
4 years ago (2016-12-21 00:55:54 UTC) #18
DaleCurtis
lgtm
4 years ago (2016-12-21 00:56:47 UTC) #19
Wez
brucedawson: PTAL - the exceptions could all be removed, thanks to a dependency change in ...
4 years ago (2016-12-21 19:18:43 UTC) #32
Wez
On 2016/12/21 19:18:43, Wez wrote: > brucedawson: PTAL - the exceptions could all be removed, ...
4 years ago (2016-12-21 20:24:08 UTC) #36
Wez
jochen: PTAL the build/ and third_party/WebKit changes, for OWNERS.
4 years ago (2016-12-21 22:02:51 UTC) #40
brucedawson
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.gn#newcode105 build/config/win/BUILD.gn:105: ldflags += [ This ...
4 years ago (2016-12-21 22:22:53 UTC) #41
Wez
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.gn#newcode105 build/config/win/BUILD.gn:105: ldflags += [ On 2016/12/21 22:22:53, brucedawson wrote: > ...
4 years ago (2016-12-22 00:03:08 UTC) #44
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/2581893002/160001
4 years ago (2016-12-22 00:03:49 UTC) #47
commit-bot: I haz the power
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_presubmit/builds/331227)
4 years ago (2016-12-22 00:12:26 UTC) #49
jam
lgtm
4 years ago (2016-12-22 00:25:37 UTC) #51
jochen (gone - plz use gerrit)
lgtm
4 years ago (2016-12-22 16:00:09 UTC) #52
Wez
FWIW win_clang failure isn't Clang-specific, but we only build "all" (and thereby build v8:cctest) under ...
4 years ago (2016-12-22 19:18:34 UTC) #53
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/2581893002/180001
3 years, 12 months ago (2016-12-23 08:05:39 UTC) #60
commit-bot: I haz the power
Committed patchset #10 (id:180001)
3 years, 12 months ago (2016-12-23 08:14:06 UTC) #64
commit-bot: I haz the power
3 years, 12 months ago (2016-12-23 08:15:49 UTC) #66
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/c868aae8f9b8d51461afff79064c75339e6ce30c
Cr-Commit-Position: refs/heads/master@{#440600}

Powered by Google App Engine
This is Rietveld 408576698