C++ How to limit visual studios multi-processor compilation

后端 未结 7 550
不思量自难忘°
不思量自难忘° 2021-02-02 10:24

Every time I compile using visual studio the rest of my computer crawls because visual studio is hogging all the processors. Is there a way to limit the number of processors tha

7条回答
  •  野性不改
    2021-02-02 11:20

    For Visual Studio 2015, change "Maximum number of parallel project builds" to desired number. (May be half number of processers in your m/c)

    Menu> Tools > Options > Projects and solutions > Build and Run. Edit value.

    Screenshot from VS2015

    Further, maximum concurrent c++ compilation can be restricted in

    Menu> Tools > Options > Projects and solutions > VC++ Project Settings > Maximum concurrent c++ compilation > Edit value.

    Please note, if used 0 then all CPU will be used.

提交回复
热议问题