r230243 - -fms-extensions: Bump the default _MSC_VER from 1700 to 1800, aka VS2013
Reid Kleckner
reid at kleckner.net
Mon Feb 23 11:25:49 PST 2015
Author: rnk
Date: Mon Feb 23 13:25:48 2015
New Revision: 230243
URL: http://llvm.org/viewvc/llvm-project?rev=230243&view=rev
Log:
-fms-extensions: Bump the default _MSC_VER from 1700 to 1800, aka VS2013
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.
Modified:
cfe/trunk/lib/Driver/Tools.cpp
cfe/trunk/test/Driver/msc-version.c
Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=230243&r1=230242&r2=230243&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Mon Feb 23 13:25:48 2015
@@ -4095,7 +4095,7 @@ void Clang::ConstructJob(Compilation &C,
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));
}
Modified: cfe/trunk/test/Driver/msc-version.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/msc-version.c?rev=230243&r1=230242&r2=230243&view=diff
==============================================================================
--- cfe/trunk/test/Driver/msc-version.c (original)
+++ cfe/trunk/test/Driver/msc-version.c Mon Feb 23 13:25:48 2015
@@ -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
//
More information about the cfe-commits
mailing list