diff --git a/vcbuild.bat b/vcbuild.bat index 01750a4a004819..58594bdf612c26 100644 --- a/vcbuild.bat +++ b/vcbuild.bat @@ -187,9 +187,11 @@ echo Project files generated. if defined nobuild goto sign @rem Build the sln with msbuild. +set "msbcpu=/m:2" +if "%NUMBER_OF_PROCESSORS%"=="1" set "msbcpu=/m:1" set "msbplatform=Win32" if "%target_arch%"=="x64" set "msbplatform=x64" -msbuild node.sln /m /t:%target% /p:Configuration=%config% /p:Platform=%msbplatform% /clp:NoSummary;NoItemAndPropertyList;Verbosity=minimal /nologo +msbuild node.sln %msbcpu% /t:%target% /p:Configuration=%config% /p:Platform=%msbplatform% /clp:NoSummary;NoItemAndPropertyList;Verbosity=minimal /nologo if errorlevel 1 goto exit if "%target%" == "Clean" goto exit