-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.

llvm-svn: 230243
This commit is contained in:
Reid Kleckner 2015-02-23 19:25:48 +00:00
parent 562145c4e1
commit c4da9c8e50
2 changed files with 3 additions and 3 deletions

View 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));
}

View 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
//