TOOLS: Add RELEASE_BUILD to autogenerated MSVC project files.

This is only done for the release target and not the debug target.

svn-id: r53065
This commit is contained in:
Johannes Schickel 2010-10-08 08:07:31 +00:00
parent a214e08c0d
commit 8639ca97e6

View File

@ -1715,7 +1715,7 @@ void VisualStudioProvider::createBuildProp(const BuildSetup &setup, bool isRelea
if (isRelease) { if (isRelease) {
properties << "\t\tEnableIntrinsicFunctions=\"true\"\n" properties << "\t\tEnableIntrinsicFunctions=\"true\"\n"
"\t\tWholeProgramOptimization=\"true\"\n" "\t\tWholeProgramOptimization=\"true\"\n"
"\t\tPreprocessorDefinitions=\"WIN32\"\n" "\t\tPreprocessorDefinitions=\"WIN32;RELEASE_BUILD\"\n"
"\t\tStringPooling=\"true\"\n" "\t\tStringPooling=\"true\"\n"
"\t\tBufferSecurityCheck=\"false\"\n" "\t\tBufferSecurityCheck=\"false\"\n"
"\t\tDebugInformationFormat=\"0\"\n" "\t\tDebugInformationFormat=\"0\"\n"
@ -2111,7 +2111,7 @@ void MSBuildProvider::createBuildProp(const BuildSetup &setup, bool isRelease, b
if (isRelease) { if (isRelease) {
properties << "\t\t\t<IntrinsicFunctions>true</IntrinsicFunctions>\n" properties << "\t\t\t<IntrinsicFunctions>true</IntrinsicFunctions>\n"
"\t\t\t<WholeProgramOptimization>true</WholeProgramOptimization>\n" "\t\t\t<WholeProgramOptimization>true</WholeProgramOptimization>\n"
"\t\t\t<PreprocessorDefinitions>WIN32;%(PreprocessorDefinitions)</PreprocessorDefinitions>\n" "\t\t\t<PreprocessorDefinitions>WIN32;RELEASE_BUILD;%(PreprocessorDefinitions)</PreprocessorDefinitions>\n"
"\t\t\t<StringPooling>true</StringPooling>\n" "\t\t\t<StringPooling>true</StringPooling>\n"
"\t\t\t<BufferSecurityCheck>false</BufferSecurityCheck>\n" "\t\t\t<BufferSecurityCheck>false</BufferSecurityCheck>\n"
"\t\t\t<DebugInformationFormat></DebugInformationFormat>\n" "\t\t\t<DebugInformationFormat></DebugInformationFormat>\n"