From 0ec52835063905de1d01a9d2de5b4f2098d87c64 Mon Sep 17 00:00:00 2001 From: GeorgH93 Date: Wed, 3 Jun 2020 16:03:14 +0200 Subject: [PATCH] Keep errorlevel --- clean_build.bat | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/clean_build.bat b/clean_build.bat index edce29c0..8f9fa8b9 100644 --- a/clean_build.bat +++ b/clean_build.bat @@ -67,9 +67,11 @@ if exist bin\Debug ( ) echo Build completed successfully +set BUILD_FAILED=0 goto done :failed +set BUILD_FAILED=%ERRORLEVEL% echo Build failed :done @@ -84,3 +86,5 @@ set BONJOUR_SDK_HOME= set B_QT_FULLPATH= set savedir= set cmake_gen= + +EXIT /B %BUILD_FAILED%