Files
clang-p2996/clang/test/Driver
Adrian McCarthy e4b26fc7a7 Get default -fms-compatibility-version from cl.exe's version
-fms-compatibility-version was defaulting to 18 (VS 2013), which is a pain if your environment is pointing to version 19 (VS 2015) libraries.

If cl.exe can be found, this patch uses its version number as the default instead. It re-uses the existing code to find the Visual Studio binaries folder and WinAPI methods to check its version. You can still explicitly specify a compatibility version on the command line. If you don't have cl.exe, this should be a no-op and you'll get the old default of 18.

This affected the tests, which assumed that if you didn't specific a version, that it would default to 18, but this won't be true for all machines. So a couple test cases had to be eliminated and a couple others had to be tweaked to allow for various outputs.

Addresses: https://llvm.org/bugs/show_bug.cgi?id=27215

Differential Revision: http://reviews.llvm.org/D20136

llvm-svn: 269515
2016-05-13 23:20:11 +00:00
..
2016-04-26 13:54:29 +00:00
2016-04-26 13:54:29 +00:00
2015-11-16 14:05:48 +00:00
2016-04-06 15:37:06 +00:00
2016-04-06 15:37:06 +00:00
2016-04-21 21:32:04 +00:00
2015-01-31 23:25:54 +00:00
2016-03-01 01:20:15 +00:00
2016-03-01 01:20:15 +00:00
2015-10-14 12:25:43 +00:00
2016-04-19 17:43:54 +00:00
2015-12-19 19:41:48 +00:00
2015-09-10 22:31:45 +00:00