diff options
author | Reid Kleckner <reid@kleckner.net> | 2013-09-19 17:18:35 +0000 |
---|---|---|
committer | Reid Kleckner <reid@kleckner.net> | 2013-09-19 17:18:35 +0000 |
commit | ab675128e9058e11df6b5017468c3a7bf72c80b6 (patch) | |
tree | a29c9a8600a23add41a8db66321fe1d75334aaee /llvm/tools/msbuild/Microsoft.Cpp.Win32.llvm.props.in | |
parent | a9df0db27d5bbdb103e3ffee88c2680fbc2e3532 (diff) | |
download | bcm5719-llvm-ab675128e9058e11df6b5017468c3a7bf72c80b6.tar.gz bcm5719-llvm-ab675128e9058e11df6b5017468c3a7bf72c80b6.zip |
msbuild: Set _MSC_VER to match the CRT we're using
Various Windows SDK headers use _MSC_VER values to figure out what
version of the VC++ headers they're using, in particular for SAL macros.
Patch by Paul Hampson!
llvm-svn: 191015
Diffstat (limited to 'llvm/tools/msbuild/Microsoft.Cpp.Win32.llvm.props.in')
-rw-r--r-- | llvm/tools/msbuild/Microsoft.Cpp.Win32.llvm.props.in | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/tools/msbuild/Microsoft.Cpp.Win32.llvm.props.in b/llvm/tools/msbuild/Microsoft.Cpp.Win32.llvm.props.in index 07e931f95fa..fce601132b6 100644 --- a/llvm/tools/msbuild/Microsoft.Cpp.Win32.llvm.props.in +++ b/llvm/tools/msbuild/Microsoft.Cpp.Win32.llvm.props.in @@ -7,4 +7,11 @@ <ExecutablePath>$(LLVMInstallDir)\msbuild-bin;$(ExecutablePath)</ExecutablePath>
<LibraryPath>$(LLVMInstallDir)\lib\clang\3.4\lib\windows;$(LibraryPath)</LibraryPath>
</PropertyGroup>
+
+ <ItemDefinitionGroup>
+ <ClCompile>
+ <!-- Set the value of _MSC_VER to claim for compatibility -->
+ <AdditionalOptions>-fmsc-version=@MSC_VERSION@ %(AdditionalOptions)</AdditionalOptions>
+ </ClCompile>
+ </ItemDefinitionGroup>
</Project>
|