diff --git a/paddle/scripts/paddle_build.bat b/paddle/scripts/paddle_build.bat index aea01887dbfe5216077d7b52ad17ec6b1c6252a5..4c901721fd95e15c2c408663bb6511631442af8b 100644 --- a/paddle/scripts/paddle_build.bat +++ b/paddle/scripts/paddle_build.bat @@ -218,6 +218,7 @@ set ON_INFER=ON set WITH_PYTHON=OFF set CUDA_ARCH_NAME=All python %work_dir%\tools\remove_grad_op_and_kernel.py +if %errorlevel% NEQ 0 exit /b 1 call :cmake || goto cmake_error call :build || goto build_error