Skip to content

Commit fbfdd25

Browse files
authored
[BUG FIX] update windows compilation script (#5813)
1 parent ed0a9bb commit fbfdd25

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lite/tools/build_windows.bat

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ goto:eof
173173
if EXIST "%workspace%\third-party" (
174174
if NOT EXIST "%workspace%\third-party-ea5576.tar.gz" (
175175
echo "The directory of third_party exists, the third-party-ea5576.tar.gz not exists."
176+
git submodule update --init --recursive
176177
) else (
177178
echo "The directory of third_party exists, the third-party-ea5576.tar.gz exists."
178179
call:rm_rebuild_dir "%workspace%\third-party"
@@ -191,13 +192,11 @@ goto:eof
191192
echo "The directory of third_party not exists, the third-party-ea5576.tar.gz exists."
192193
!python_path! %workspace%\lite\tools\untar.py %source_path%\third-party-ea5576.tar.gz %workspace%
193194
)
194-
195195
)
196-
git submodule update --init --recursive
197196
goto:eof
198197

199198
:download_third_party
200-
powershell.exe (new-object System.Net.WebClient).DownloadFile('https://paddle-inference-dist.bj.bcebos.com/PaddleLite/third-party-ea5576.tar.gz', ^
199+
powershell.exe (new-object System.Net.WebClient).DownloadFile('%THIRDPARTY_TAR%', ^
201200
'%workspace%\third-party-ea5576.tar.gz')
202201
goto:eof
203202

0 commit comments

Comments
 (0)