[ros-diffs] [cwittich] 19792: fixed the build options for different configurations

cwittich at svn.reactos.com cwittich at svn.reactos.com
Thu Dec 1 00:33:38 CET 2005


fixed the build options for different configurations
Modified: trunk/reactos/tools/rbuild/backend/msvc/vcprojmaker.cpp
  _____  

Modified: trunk/reactos/tools/rbuild/backend/msvc/vcprojmaker.cpp
--- trunk/reactos/tools/rbuild/backend/msvc/vcprojmaker.cpp
2005-11-30 23:32:31 UTC (rev 19791)
+++ trunk/reactos/tools/rbuild/backend/msvc/vcprojmaker.cpp
2005-11-30 23:33:29 UTC (rev 19792)
@@ -228,7 +228,7 @@

 
 		fprintf ( OUT, "\t\t\t<Tool\r\n" );
 		fprintf ( OUT, "\t\t\t\tName=\"VCCLCompilerTool\"\r\n"
);
-		fprintf ( OUT, "\t\t\t\tOptimization=\"%d\"\r\n", debug
? 0 : 2 );
+		fprintf ( OUT, "\t\t\t\tOptimization=\"%d\"\r\n",
release ? 2 : 0 );
 
 		fprintf ( OUT, "\t\t\t\tAdditionalIncludeDirectories=\""
);
 		bool multiple_includes = false;
@@ -278,7 +278,7 @@
 		}
 		fprintf ( OUT, "\"\r\n" );
 
-		fprintf ( OUT, "\t\t\t\tMinimalRebuild=\"TRUE\"\r\n" );
+		fprintf ( OUT, "\t\t\t\tMinimalRebuild=\"%s\"\r\n",
speed ? "FALSE" : "TRUE" );
 		fprintf ( OUT, "\t\t\t\tBasicRuntimeChecks=\"%s\"\r\n",
debug ? "3" : "0" );
 		fprintf ( OUT, "\t\t\t\tRuntimeLibrary=\"5\"\r\n" );
 		fprintf ( OUT, "\t\t\t\tBufferSecurityCheck=\"%s\"\r\n",
debug ? "TRUE" : "FALSE" );
@@ -298,6 +298,14 @@
 		}
 
 		fprintf ( OUT,
"\t\t\t\tWholeProgramOptimization=\"%s\"\r\n", release ? "TRUE" :
"FALSE");
+		if ( release )
+		{
+			fprintf ( OUT,
"\t\t\t\tFavorSizeOrSpeed=\"1\"\r\n" );
+			fprintf ( OUT,
"\t\t\t\tStringPooling=\"true\"\r\n" );
+		}
+
+		fprintf ( OUT, "\t\t\t\tEnablePREfast=\"%s\"\r\n", debug
? "TRUE" : "FALSE");
+		fprintf ( OUT,
"\t\t\t\tDisableSpecificWarnings=\"4201;4127\"\r\n" );
 		fprintf ( OUT, "\t\t\t\tWarningLevel=\"%s\"\r\n",
release ? "0" : "4" );
 		fprintf ( OUT,
"\t\t\t\tDetect64BitPortabilityProblems=\"%s\"\r\n", release ? "FALSE" :
"TRUE");
 		fprintf ( OUT,
"\t\t\t\tDebugInformationFormat=\"%s\"/>\r\n", speed ? "0" : "4");
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20051201/dd56245e/attachment.html


More information about the Ros-diffs mailing list