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 | 31eb340cb68172874f5ad6d1fd7b3cb286a8615c (patch) | |
tree | 58b72709b414495390ae4c164cc729896ee4b9af /tools/msbuild/Microsoft.Cpp.Win32.llvm.props.in | |
parent | 4f77a21d6ca2d560a7508fd54581b12dfc01630b (diff) | |
download | llvm-31eb340cb68172874f5ad6d1fd7b3cb286a8615c.tar.gz llvm-31eb340cb68172874f5ad6d1fd7b3cb286a8615c.tar.bz2 llvm-31eb340cb68172874f5ad6d1fd7b3cb286a8615c.tar.xz |
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!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191015 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/msbuild/Microsoft.Cpp.Win32.llvm.props.in')
-rw-r--r-- | tools/msbuild/Microsoft.Cpp.Win32.llvm.props.in | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/msbuild/Microsoft.Cpp.Win32.llvm.props.in b/tools/msbuild/Microsoft.Cpp.Win32.llvm.props.in index 07e931f95f..fce601132b 100644 --- a/tools/msbuild/Microsoft.Cpp.Win32.llvm.props.in +++ b/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>
|