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

Issue 1488933002: Misc fixes for gn builds with VS 2015 (Closed)

Created:
5 years ago by brucedawson
Modified:
5 years ago
Reviewers:
Dirk Pranke, jschuh, brettw
CC:
chromium-reviews, piman+watch_chromium.org, zea+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Misc fixes for gn builds with VS 2015 These changes are enough to get gn_all building with VS 2015 in 32-bit gn builds. The changes are mostly to fix warnings about truncation from size_t to smaller types. One fix is to avoid illegal #defines, already fixed in the GYP builds. Warning 4267 is disabled in the main BUILD.gn file because many of the 4244 warnings that VC++ 2013 emits are now emitted as 4267, so we need to disable 4267 everywhere that 4244 is disabled. Fixing the code is best done as a separate task. The code fixes are to avoid truncations, mostly by using more appropriate types. BUG=440500 Committed: https://crrev.com/c8e9e0d00bc2ba692ee4e61ae728a50e911513c1 Cr-Commit-Position: refs/heads/master@{#362858}

Patch Set 1 #

Patch Set 2 : Move vs_version.gni include inside if (is_win) #

Patch Set 3 : Disable warning 4267 which is the VC++ 2015 4244 #

Total comments: 1

Patch Set 4 : Disable C4267 for VC++ 2015 builds only #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -12 lines) Patch
M build/config/compiler/BUILD.gn View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
M google_apis/gcm/base/mcs_util_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M gpu/command_buffer/client/query_tracker.cc View 1 chunk +1 line, -1 line 0 comments Download
M printing/printing_context_win_unittest.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/leveldatabase/BUILD.gn View 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/libexif/BUILD.gn View 1 1 chunk +10 lines, -5 lines 0 comments Download

Messages

Total messages: 23 (8 generated)
brucedawson
PTAL. There's five more files in chrome/components with similar fixes if you want that (simple) ...
5 years ago (2015-12-01 01:39:40 UTC) #2
brucedawson
On 2015/12/01 01:39:40, brucedawson wrote: > PTAL. > > There's five more files in chrome/components ...
5 years ago (2015-12-01 01:49:10 UTC) #3
brucedawson
PTAL. The try bot failure has been fixed. The current try bot failures are spurious/unrelated ...
5 years ago (2015-12-01 18:56:03 UTC) #4
brucedawson
PTAL. This is enough to get 32-bit gn_all building with VC++ 2015 - disabling 4267 ...
5 years ago (2015-12-02 18:26:17 UTC) #9
brettw
https://codereview.chromium.org/1488933002/diff/40001/build/config/compiler/BUILD.gn File build/config/compiler/BUILD.gn (right): https://codereview.chromium.org/1488933002/diff/40001/build/config/compiler/BUILD.gn#newcode744 build/config/compiler/BUILD.gn:744: "/wd4267", # Conversion: possible loss of data. We don't ...
5 years ago (2015-12-02 18:33:59 UTC) #10
brucedawson
On 2015/12/02 18:33:59, brettw wrote: > https://codereview.chromium.org/1488933002/diff/40001/build/config/compiler/BUILD.gn > File build/config/compiler/BUILD.gn (right): > > https://codereview.chromium.org/1488933002/diff/40001/build/config/compiler/BUILD.gn#newcode744 > ...
5 years ago (2015-12-02 18:45:54 UTC) #11
brettw
On 2015/12/02 18:45:54, brucedawson wrote: > On 2015/12/02 18:33:59, brettw wrote: > > > https://codereview.chromium.org/1488933002/diff/40001/build/config/compiler/BUILD.gn ...
5 years ago (2015-12-02 18:52:08 UTC) #12
brucedawson
On 2015/12/02 18:52:08, brettw wrote: > On 2015/12/02 18:45:54, brucedawson wrote: > > On 2015/12/02 ...
5 years ago (2015-12-02 18:56:02 UTC) #13
jschuh
How many new targets are now hitting 4267 due to the reclassification in 2015? Other ...
5 years ago (2015-12-02 20:04:20 UTC) #14
brucedawson
On 2015/12/02 20:04:20, jschuh (very slow) wrote: > How many new targets are now hitting ...
5 years ago (2015-12-02 20:26:22 UTC) #15
jschuh
On 2015/12/02 20:26:22, brucedawson wrote: > On 2015/12/02 20:04:20, jschuh (very slow) wrote: > > ...
5 years ago (2015-12-02 21:08:25 UTC) #16
brettw
lgtm
5 years ago (2015-12-03 00:21:45 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1488933002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1488933002/60001
5 years ago (2015-12-03 00:55:36 UTC) #19
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years ago (2015-12-03 01:54:35 UTC) #21
commit-bot: I haz the power
5 years ago (2015-12-03 01:55:43 UTC) #23
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/c8e9e0d00bc2ba692ee4e61ae728a50e911513c1
Cr-Commit-Position: refs/heads/master@{#362858}

Powered by Google App Engine
This is Rietveld 408576698