From d70e45bc51e607677069d9cf3cc154dac5934bdf Mon Sep 17 00:00:00 2001 From: Sing_chan <51314274+betterpig@users.noreply.github.com> Date: Tue, 31 May 2022 21:34:59 +0800 Subject: [PATCH] put set error_code infront to avoid being skipped (#43014) --- paddle/scripts/paddle_build.bat | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/paddle/scripts/paddle_build.bat b/paddle/scripts/paddle_build.bat index 0f70f9a8f35..2a18d2f7e01 100644 --- a/paddle/scripts/paddle_build.bat +++ b/paddle/scripts/paddle_build.bat @@ -85,6 +85,9 @@ if not defined NEW_RELEASE_JIT set NEW_RELEASE_JIT=OFF set task_name=%1 set UPLOAD_TP_FILE=OFF +set error_code=0 +type %cache_dir%\error_code.txt + rem ------initialize set git config------ git config --global core.longpaths true @@ -118,8 +121,6 @@ if "%WITH_CACHE%"=="OFF" ( goto :mkbuild ) -set error_code=0 -type %cache_dir%\error_code.txt : set /p error_code=< %cache_dir%\error_code.txt if %error_code% NEQ 0 ( rmdir %BUILD_DIR% /s/q -- GitLab