如何提高VS2010/VS2012编译速度

来源:互联网 发布:淘宝网针织衫 编辑:程序博客网 时间:2024/06/06 09:00

除了可以在项目中采用预编译外,还可以采用下面方法

VS2010/2012都可以用多核编译,需要同时设置如下两个参数:

第一步

Properties -> Configuration Properties -> C/C++ -> Code Generation -> Enable Minimal Rebuild -> No(/Gm-)

第二步

Properties -> Configuration Properties -> C/C++ -> Geneal -> Multi-processor Compilation -> Yes(/MP)

第三步

Options->Projects and Solutions->Build and Run:

8 maximum number of parallel project builds.

这里根据你的电脑核数去设置


0 0