How can I do a parallel build in Visual Studio 2010?

Ross Smith picture Ross Smith · May 30, 2011 · Viewed 39k times · Source

How can I get VS 2010 to run more than one C++ compile process at a time? I mean building object modules in parallel; I'm not interested in building more than one project at a time (I know about Tools > Options > Build and Run < Maximum number of parallel project builds, but that doesn't do what I want).

Basically, I'm looking for Visual Studio's equivalent of "make -jN".

Answer

Billy ONeal picture Billy ONeal · May 30, 2011
  1. Tools -> Options
  2. Projects and Solutions\VC++ Project Settings
  3. Maximum concurrent C++ compilations

Also, as Ross Smith said in the comments, you also need to turn on the "Multiprocessor compilation" option on the project:

  1. Project properties
  2. Configuration Properties > C/C++ > General
  3. Multi-Processor Compilation
  4. Profit!