]> granicus.if.org Git - clang/commitdiff
-fms-extensions: Bump the default _MSC_VER from 1700 to 1800, aka VS2013
authorReid Kleckner <reid@kleckner.net>
Mon, 23 Feb 2015 19:25:48 +0000 (19:25 +0000)
committerReid Kleckner <reid@kleckner.net>
Mon, 23 Feb 2015 19:25:48 +0000 (19:25 +0000)
VS 2013 is the minimum supported version, so it's reasonable for Clang
to simulate this by default. This also simplifies the clang-cl
self-host, since we have the 18.00 version check.

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

lib/Driver/Tools.cpp
test/Driver/msc-version.c

index 28279bbb9ed1e43935816335978bbee471e6bc5b..c04737544f2de377a6322339f425d4edcfe8b2b0 100644 (file)
@@ -4095,7 +4095,7 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
       Ver = getMSCompatibilityVersion(MSCVersion->getValue());
 
     if (Ver.empty())
-      CmdArgs.push_back("-fms-compatibility-version=17.00");
+      CmdArgs.push_back("-fms-compatibility-version=18.00");
     else
       CmdArgs.push_back(Args.MakeArgString("-fms-compatibility-version=" + Ver));
   }
index 1a88419c0225d0ada3d12db6110175b378257422..4105eba868fafc3cb50fa2abd281166c3dd6091b 100644 (file)
@@ -5,8 +5,8 @@
 // RUN: %clang -target i686-windows -fms-compatibility -dM -E - </dev/null -o - | FileCheck %s -check-prefix CHECK-NO-MSC-VERSION
 
 // CHECK-NO-MSC-VERSION: _MSC_BUILD 1
-// CHECK-NO-MSC-VERSION: _MSC_FULL_VER 170000000
-// CHECK-NO-MSC-VERSION: _MSC_VER 1700
+// CHECK-NO-MSC-VERSION: _MSC_FULL_VER 180000000
+// CHECK-NO-MSC-VERSION: _MSC_VER 1800
 
 
 //