How do I utilise all the cores for nmake?

后端 未结 8 1594
忘了有多久
忘了有多久 2020-12-13 00:00

I just got a new quad core computer and noticed that nmake is only using 1 process.

I used to use make which had the switch -j4 for launching 4 processes. What is t

相关标签:
8条回答
  • 2020-12-13 00:37

    It's not quite the same, but if you use cmake, you can export solution (e.g. using generator "Visual Studio 14 2015" instead of "NMake Makefiles").

    In this case it's possible to build exported solution using msbuild tool which allows you to parallelize building process with /maxcpucount command line switch.

    0 讨论(0)
  • 2020-12-13 00:42

    The CMake 2.8.1 RC1, as for the time of writing this it's ready to try, does bring new generator for NMake which is called NMake Makefiles JOM and it generates NMake with specific settings for jom, which is the drop in replacement of NMake. Thus, it gives multi-processing enabled building using NMake.

    0 讨论(0)
提交回复
热议问题