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

Issue 1422453005: Get VS 2015 to use const int definitions (Closed)

Created:
5 years, 1 month ago by brucedawson
Modified:
4 years, 11 months ago
CC:
chromium-reviews, pdr+graphicswatchlist_chromium.org, drott+blinkwatch_chromium.org, Rik, blink-reviews-platform-graphics_chromium.org, dshwang, jbroman, Justin Novosad, danakj, krit, f(malita), blink-reviews, vmpstr+blinkwatch_chromium.org, Stephen Chennney, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Get VS 2015 to use const int definitions VC++ up to VS 2015 RTM does not require explicit storage allocation for static const integers declared in classes. VS 2015 Update 1 requires these storage definitions in some cases. It's unclear exactly what cases - simple tests work with and without the explicit storage allocation. Many previous versions of VC++ have theoretically *allowed* a definition to supply storage, but tests on VC++ 2013 show that this doesn't actually work correctly - it leads to duplicate definition errors. So, the change is scoped to VS 2015 only. This changed was landed in the upstream protobuf repo: https://github.com/google/protobuf/commit/a74e912a8be1274 With this change the chrome target builds with the latest VS 2015. R=scottmg@chromium.org, pdr@chromium.org BUG=440500 Committed: https://crrev.com/0693ed787f6ffd2b248ef8cf2c0dc050a4e9d8b2 Cr-Commit-Position: refs/heads/master@{#357013}

Patch Set 1 #

Patch Set 2 : Change the protobuf library to support VC++ 2015 Update 1 #

Patch Set 3 : Update version check to allow in VC++ 2013 #

Patch Set 4 : Only apply fix to VS 2015 - VS 2013 can't handle it #

Patch Set 5 : Updating two generated files, per protobuf tests #

Patch Set 6 : Comment fix #

Patch Set 7 : Update README.chromium #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -63 lines) Patch
M third_party/WebKit/Source/platform/graphics/Color.cpp View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M third_party/protobuf/README.chromium View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_enum.cc View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_extension.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_message.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/protobuf/src/google/protobuf/compiler/plugin.pb.cc View 1 2 3 4 3 chunks +6 lines, -6 lines 0 comments Download
M third_party/protobuf/src/google/protobuf/descriptor.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M third_party/protobuf/src/google/protobuf/descriptor.pb.cc View 1 2 3 4 28 chunks +48 lines, -48 lines 0 comments Download
M third_party/protobuf/src/google/protobuf/wire_format_lite.cc View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 20 (7 generated)
brucedawson
This avoids missing symbol errors in VS 2015 Update 1. The version number check ensures ...
5 years, 1 month ago (2015-10-28 17:24:11 UTC) #3
brucedawson
On 2015/10/28 17:24:11, brucedawson wrote: > This avoids missing symbol errors in VS 2015 Update ...
5 years, 1 month ago (2015-10-28 17:31:48 UTC) #4
brucedawson
The protobuf compiler has an exception for _MSC_VER embedded into its code generator which also ...
5 years, 1 month ago (2015-10-28 22:00:35 UTC) #5
Peter Kasting
On 2015/10/28 22:00:35, brucedawson wrote: > A protobuf issue was opened to track this and ...
5 years, 1 month ago (2015-10-28 22:21:21 UTC) #6
brucedawson
> The protobuf folks are usually pretty responsive to actual pull requests; if you > ...
5 years, 1 month ago (2015-10-28 23:34:30 UTC) #7
brucedawson
pdr@ - can you review the Color.cpp change? It's trivial. scottmg@ - can you review ...
5 years, 1 month ago (2015-10-29 23:13:03 UTC) #11
scottmg
lgtm
5 years, 1 month ago (2015-10-29 23:39:21 UTC) #12
pdr.
On 2015/10/29 at 23:39:21, scottmg wrote: > lgtm Color.cpp LGTM
5 years, 1 month ago (2015-10-30 00:20:12 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1422453005/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1422453005/120001
5 years, 1 month ago (2015-10-30 00:22:16 UTC) #15
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 1 month ago (2015-10-30 01:28:23 UTC) #16
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/0693ed787f6ffd2b248ef8cf2c0dc050a4e9d8b2 Cr-Commit-Position: refs/heads/master@{#357013}
5 years, 1 month ago (2015-10-30 01:29:55 UTC) #17
Sébastien Marchand
Hey, have you submitted a PR to the protobuf team ? Syzygy has also a ...
4 years, 11 months ago (2016-01-08 19:07:14 UTC) #19
Sébastien Marchand
4 years, 11 months ago (2016-01-08 19:13:42 UTC) #20
Message was sent while issue was closed.
Nvm, found it: https://github.com/google/protobuf/pull/922

Powered by Google App Engine
This is Rietveld 408576698