buaagg
buaagg

Reputation: 629

How to ask Visual Studio to compile by particular number of cores

We know in gnu-make, we can simply say that by something like -j2, -j4.

How to ask the Visual Studio to do similar things.

For example, my desktop has 8 cores, I need 4 cores to compile the code in C++ and the other 4 for me to do other things.

Upvotes: 0

Views: 63

Answers (1)

Chuck Walbourn
Chuck Walbourn

Reputation: 41087

You use the /MP switch and give it a number like "/MP4". See MSDN

Upvotes: 1

Related Questions