VS optimizes compilation configuration, vs optimizes Compilation
When you use VS2010 to compile a C ++ program, each time you modify a file in the project and click "generate-only for project-only generate, it is often because the whole project needs to be re-compiled. Because the amount of code in this project is too large, it takes about 10 minutes to compile each compilation. The most annoying time is that when an error occurs after compilation, it is a waste of time to modify the error and re-compile it. So how can I configure VS2010 to compile only the modified files by default like VC6.0? There are also many solutions to this problem on the network. Here I will sort out my modified configurations.
1. Caused by TimeFirst
Debug mode,
DeleteFunction
All files in the debug directory. Then, find:
Project-properties-configure properties-C/C ++-code generation-enable minimum regenerate: Yes (/Gm)
Project-properties-configuration properties-C/C ++-General-debugging information format: Program database (/Zi)
Properties-configure properties-linker-General-enable incremental link and select Yes"
Finally, you 'd better modify one more:
Tools-project and solution-Generate and run
During running, when the project expires, choose not to generate
Select-only projects and dependencies are generated at run time.
Select "minimum" for MSBuild project generation output details
2. Caused by precompiled header files
Project-properties-configuration properties-precompiled header file: Use/YuGenerally, after this configuration, VS2010 only compiles the modified files during each compilation.