Go to file
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
clang Get default -fms-compatibility-version from cl.exe's version 2016-05-13 23:20:11 +00:00
clang-tools-extra [include-fixer] Fix broken dependency shared build 2016-05-13 17:38:22 +00:00
compiler-rt Reapply "[ProfileData] (compiler-rt) Use Error in InstrProf and Coverage, NFC" 2016-05-13 21:51:06 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc math: Add erf ported from amd-builtins 2016-05-06 18:02:30 +00:00
libcxx Apply D20014 - fix a missing return in a test. Fixes PR#27720 2016-05-12 14:31:35 +00:00
libcxxabi libc++abi: make __cxa_call_unexpected visible 2016-05-11 23:56:37 +00:00
libunwind unwind: remove last instance of -Wexpansion-to-defined 2016-04-26 01:11:29 +00:00
lld Update for a recent format change. 2016-05-13 21:58:46 +00:00
lldb test infra: catch bad decorators and import-time errors 2016-05-13 21:36:26 +00:00
llgo [llgo] llgoi: separate evaluation from printing 2016-04-25 01:18:20 +00:00
llvm [MachO] More missing swapStruct implementations 2016-05-13 23:01:22 +00:00
openmp NFC fix indent (relates to my previous commit) 2016-05-13 17:45:49 +00:00
polly Check late for profitability 2016-05-12 20:21:50 +00:00