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

Issue 803273002: win: set CXX_LIBRARY_VERSION to 2011 (Closed)

Created:
6 years ago by scottmg
Modified:
6 years ago
Reviewers:
Mark Mentovai
CC:
crashpad-dev_chromium.org
Base URL:
https://chromium.googlesource.com/crashpad/crashpad@master
Target Ref:
refs/heads/master
Project:
crashpad
Visibility:
Public.

Description

win: set CXX_LIBRARY_VERSION to 2011 Unfortunately VS2013's support of C++11 is partial. It supports the extended union definition, but does not fully support constexpr. So, update some locations where CXX_LIBRARY_VERSION is used where toolchain support is lacking. It works correctly in the locations where std::is_standard_layout is used. R=mark@chromium.org BUG=crashpad:1 Committed: https://chromium.googlesource.com/crashpad/crashpad/+/c23dcdc88a6a39012b16e7f17b20381d393e2351

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Total comments: 2

Patch Set 4 : add CXX_HAS_CONSTEXPR #

Total comments: 2

Patch Set 5 : fix new define on msvc #

Total comments: 2

Patch Set 6 : to CXX_LIBRARY_HAS_CONSTEXR #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -1 line) Patch
M util/stdlib/cxx.h View 1 2 3 4 5 2 chunks +13 lines, -0 lines 0 comments Download
M util/stdlib/string_number_conversion.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 9 (1 generated)
scottmg
6 years ago (2014-12-15 22:00:59 UTC) #1
Mark Mentovai
https://codereview.chromium.org/803273002/diff/40001/util/stdlib/string_number_conversion.cc File util/stdlib/string_number_conversion.cc (right): https://codereview.chromium.org/803273002/diff/40001/util/stdlib/string_number_conversion.cc#newcode33 util/stdlib/string_number_conversion.cc:33: #if CXX_LIBRARY_VERSION >= 2011 && !defined(COMPILER_MSVC) Maybe we should ...
6 years ago (2014-12-15 23:33:19 UTC) #2
scottmg
https://codereview.chromium.org/803273002/diff/40001/util/stdlib/string_number_conversion.cc File util/stdlib/string_number_conversion.cc (right): https://codereview.chromium.org/803273002/diff/40001/util/stdlib/string_number_conversion.cc#newcode33 util/stdlib/string_number_conversion.cc:33: #if CXX_LIBRARY_VERSION >= 2011 && !defined(COMPILER_MSVC) On 2014/12/15 23:33:19, ...
6 years ago (2014-12-15 23:38:19 UTC) #3
Mark Mentovai
https://codereview.chromium.org/803273002/diff/60001/util/stdlib/cxx.h File util/stdlib/cxx.h (right): https://codereview.chromium.org/803273002/diff/60001/util/stdlib/cxx.h#newcode23 util/stdlib/cxx.h:23: #define CXX_HAS_CONSTEXPR 1 I thought you said that MSVC ...
6 years ago (2014-12-15 23:44:23 UTC) #4
scottmg
https://codereview.chromium.org/803273002/diff/60001/util/stdlib/cxx.h File util/stdlib/cxx.h (right): https://codereview.chromium.org/803273002/diff/60001/util/stdlib/cxx.h#newcode23 util/stdlib/cxx.h:23: #define CXX_HAS_CONSTEXPR 1 On 2014/12/15 23:44:23, Mark Mentovai wrote: ...
6 years ago (2014-12-15 23:48:38 UTC) #5
Mark Mentovai
LGTM with one more small change. https://codereview.chromium.org/803273002/diff/80001/util/stdlib/string_number_conversion.cc File util/stdlib/string_number_conversion.cc (right): https://codereview.chromium.org/803273002/diff/80001/util/stdlib/string_number_conversion.cc#newcode32 util/stdlib/string_number_conversion.cc:32: #if CXX_LIBRARY_VERSION >= ...
6 years ago (2014-12-15 23:51:56 UTC) #6
scottmg
Thanks. https://codereview.chromium.org/803273002/diff/80001/util/stdlib/string_number_conversion.cc File util/stdlib/string_number_conversion.cc (right): https://codereview.chromium.org/803273002/diff/80001/util/stdlib/string_number_conversion.cc#newcode32 util/stdlib/string_number_conversion.cc:32: #if CXX_LIBRARY_VERSION >= 2011 && CXX_HAS_CONSTEXPR On 2014/12/15 ...
6 years ago (2014-12-15 23:54:48 UTC) #8
scottmg
6 years ago (2014-12-15 23:55:46 UTC) #9
Message was sent while issue was closed.
Committed patchset #6 (id:120001) manually as
c23dcdc88a6a39012b16e7f17b20381d393e2351 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698