]> granicus.if.org Git - clang/commitdiff
[MS] Raise the default value of _MSC_VER to 1911, which is VS 2017
authorReid Kleckner <rnk@google.com>
Fri, 6 Oct 2017 21:02:28 +0000 (21:02 +0000)
committerReid Kleckner <rnk@google.com>
Fri, 6 Oct 2017 21:02:28 +0000 (21:02 +0000)
Summary:
This raises our default past 1900, which controls whether char16_t is a
builtin type or not.

Implements PR34243

Reviewers: hans

Subscribers: STL_MSFT, rsmith, cfe-commits

Differential Revision: https://reviews.llvm.org/D38646

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@315107 91177308-0d34-0410-b5e6-96231b3b80d8

docs/ReleaseNotes.rst
lib/Driver/ToolChains/MSVC.cpp

index b65c3bf9887e7f6ee92741284e4d426a4f0c239a..49c26b449d0146502e982983e0a3e3ff2c8e8718 100644 (file)
@@ -89,6 +89,11 @@ Non-comprehensive list of changes in this release
 - Bitrig OS was merged back into OpenBSD, so Bitrig support has been
   removed from Clang/LLVM.
 
+- The default value of _MSC_VER was raised from 1800 to 1911, making it
+  compatible with the Visual Studio 2015 and 2017 C++ standard library headers.
+  Users should generally expect this to be regularly raised to match the most
+  recently released version of the Visual C++ compiler.
+
 New Compiler Flags
 ------------------
 
index 4d2fa45136e3084f4cf4c4988271f9a0387bd8b1..ae41ee9e22cf1d10ad350db7dca2ffc25edc56cc 100644 (file)
@@ -1266,9 +1266,8 @@ VersionTuple MSVCToolChain::computeMSVCVersion(const Driver *D,
   if (MSVT.empty() &&
       Args.hasFlag(options::OPT_fms_extensions, options::OPT_fno_ms_extensions,
                    IsWindowsMSVC)) {
-    // -fms-compatibility-version=18.00 is default.
-    // FIXME: Consider bumping this to 19 (MSVC2015) soon.
-    MSVT = VersionTuple(18);
+    // -fms-compatibility-version=19.11 is default, aka 2017
+    MSVT = VersionTuple(19, 11);
   }
   return MSVT;
 }