From c4da9c8e5058d6d72422b965281fa43990595268 Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Mon, 23 Feb 2015 19:25:48 +0000 Subject: [PATCH] -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 --- clang/lib/Driver/Tools.cpp | 2 +- clang/test/Driver/msc-version.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp index 28279bbb9ed1..c04737544f2d 100644 --- a/clang/lib/Driver/Tools.cpp +++ b/clang/lib/Driver/Tools.cpp @@ -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)); } diff --git a/clang/test/Driver/msc-version.c b/clang/test/Driver/msc-version.c index 1a88419c0225..4105eba868fa 100644 --- a/clang/test/Driver/msc-version.c +++ b/clang/test/Driver/msc-version.c @@ -5,8 +5,8 @@ // RUN: %clang -target i686-windows -fms-compatibility -dM -E -