Skip to content

Commit b04c06d

Browse files
committed
polish windows ci
1 parent ff1db2e commit b04c06d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

paddle/scripts/paddle_build.bat

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ rem Paddle CI Task On Windows Platform
1818
rem =================================================
1919

2020
@ECHO ON
21-
setlocal
21+
setlocal enabledelayedexpansion
2222

2323
rem -------clean up environment-----------
2424
set work_dir=%cd%
@@ -236,6 +236,8 @@ call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary
236236
set DISTUTILS_USE_SDK=1
237237
rem Windows 10 Kit bin dir
238238
set PATH=C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x64;%PATH%
239+
rem Use 64-bit ToolSet to compile
240+
set PreferredToolArchitecture=x64
239241

240242
for /F %%# in ('wmic os get localdatetime^|findstr 20') do set start=%%#
241243
set start=%start:~4,10%
@@ -366,7 +368,7 @@ echo Build third_party the %build_times% time:
366368
if %GENERATOR% == "Ninja" (
367369
ninja third_party
368370
) else (
369-
MSBuild /m /p:PreferredToolArchitecture=x64 /p:Configuration=Release /verbosity:quiet third_party.vcxproj
371+
MSBuild /m /p:PreferredToolArchitecture=x64 /p:Configuration=Release /verbosity:%LOG_LEVEL% third_party.vcxproj
370372
)
371373
if %ERRORLEVEL% NEQ 0 (
372374
set /a build_times=%build_times%+1

0 commit comments

Comments
 (0)