Search code examples
visual-studio-2008build-processmulticore

Multiproc builds in VS2008


I remember reading somewhere about multiproc builds in VS2008, only I can't find the article now. Does anyone know how to turn this on, or even if it is possible?


Solution

  • There are two ways to parallelize a build in VS2008.

    The first is to run several project builds in parallel. The setting is in Tools->Options->Projects and Solutions->Build and Run, called "Maximum number of parallel project builds". Note that each project will only build one file at a time.

    The second is to compile multiple files at a time within a single project. With C++, this is done by setting the /MP compiler flag. Note that this feature interacts rather oddly with precompiled headers, and you'll have to jump through some hoops to combine the two.