|
|
|
@ -154,6 +154,7 @@ echo Step 2. Buile Paddle ...
|
|
|
|
|
echo ========================================
|
|
|
|
|
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64
|
|
|
|
|
|
|
|
|
|
for /F %%# in ('wmic cpu get NumberOfLogicalProcessors^|findstr [0-9]') do set /a PARALLEL_PROJECT_COUNT=%%#*8/10
|
|
|
|
|
set build_times=1
|
|
|
|
|
:build_tp
|
|
|
|
|
echo Build third_party the %build_times% time:
|
|
|
|
@ -172,7 +173,7 @@ echo Build third_party successfully!
|
|
|
|
|
set build_times=1
|
|
|
|
|
:build_paddle
|
|
|
|
|
echo Build Paddle the %build_times% time:
|
|
|
|
|
msbuild /m /p:Configuration=Release /verbosity:minimal paddle.sln
|
|
|
|
|
msbuild /m:%PARALLEL_PROJECT_COUNT% /p:Configuration=Release /verbosity:minimal paddle.sln
|
|
|
|
|
if %ERRORLEVEL% NEQ 0 (
|
|
|
|
|
set /a build_times=%build_times%+1
|
|
|
|
|
if %build_times% GTR 2 (
|
|
|
|
|