[msvc/make.bat] Limit the amount of simultaneously compiled projects.
authorlazydodo <github@lazydodo.com>
Wed, 3 May 2017 21:15:35 +0000 (15:15 -0600)
committerlazydodo <github@lazydodo.com>
Wed, 3 May 2017 21:15:35 +0000 (15:15 -0600)
This was set to maxcpu which in an 8 core box would be 8, each project would then spawn
8 instances of cl.exe, making a possible of 64 simultaneously running compiler instances
slowing the compile down instead of speeding it up.

make.bat

index f818df5..988cb5f 100644 (file)
--- a/make.bat
+++ b/make.bat
@@ -257,7 +257,7 @@ echo msbuild ^
        %BUILD_DIR%\Blender.sln ^
        /target:build ^
        /property:Configuration=%BUILD_TYPE% ^
-       /maxcpucount ^
+       /maxcpucount:2 ^
        /verbosity:minimal ^
        /p:platform=%MSBUILD_PLATFORM% ^
        /flp:Summary;Verbosity=minimal;LogFile=%BUILD_DIR%\Build.log >> %BUILD_DIR%\rebuild.cmd
@@ -273,7 +273,7 @@ msbuild ^
        %BUILD_DIR%\Blender.sln ^
        /target:build ^
        /property:Configuration=%BUILD_TYPE% ^
-       /maxcpucount ^
+       /maxcpucount:2 ^
        /verbosity:minimal ^
        /p:platform=%MSBUILD_PLATFORM% ^
        /flp:Summary;Verbosity=minimal;LogFile=%BUILD_DIR%\Build.log