原文:https://blog.csdn.net/acaiwlj/article/details/50240625
visual studio在编译时可以启动多核并行编译,以减少编译所需时间。话不多说,直接看步骤吧:
1. Solution Explorer导航窗口右键需要并行编译的项目,进入属性页面
2.“C/C++" -> ”General“ -> "Multi-processor Compilation" -> "Yes(/MP)"
3. "C/C++" -> "Code Generation" -> "Enable Minimal Rebuild" -> "No(/Gm-)"
4. 菜单栏,"Debug" -> "Options and Settings" -> "Projects and Solutions" -> "VC+ Project Settings" ->
"Maximum concurrent C++ compilations" 设置最大C++编译并发线程数