|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer|
How to: Run Multiprocessor Builds with VCBUILD
You can use VCBUILD to run Multiprocessor Builds from the command line. An advantage of building your projects using this utility is that it does not require Visual Studio to be installed on your computer.
The /M option activates multiprocessor builds for the VCBUILD utility.
To run multiprocessor builds using VCBUILD
Open a command window.
To run VCBUILD, the path of the directory that stores this utility must be included in the PATH environment variable.
At the command prompt, use the following command line to build your projects:
vcbuild /M<number> [options] [project|solution] [configuration]
<number> specifies the amount of concurrent builds to run.
The following example illustrates multiprocessor builds using the VCBUILD utility. To set up this example, create a new solution named MultiprocExample in an example directory (C:\MyExamples) that comprises two managed console applications, one named Console1 and the other named Console2.
Use the following command line to run a multiprocessor build on Console1 as Debug and Console2 as Debug. The /M2 option specifies to build the two projects concurrently.
C:\>vcbuild /M2 "C:\MyExamples\MultiprocExample\Console1\Console1.vcproj" Debug "C:\MyExamples\MultiprocExample\Console2\Console2.vcproj" Debug