版權(quán)聲明:本文為博主原創(chuàng)文章,如需轉(zhuǎn)載,請注明出處。 https://blog.csdn.net/acaiwlj/article/details/50240625
visual studio在編譯時可以啟動多核并行編譯,以減少編譯所需時間。話不多說,直接看步驟吧: 1. Solution Explorer導(dǎo)航窗口右鍵需要并行編譯的項目,進入屬性頁面
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" 設(shè)置最大C++編譯并發(fā)線程數(shù) |
|