From 0ad46bdb56959aee089aa261b15bed7af177de5f Mon Sep 17 00:00:00 2001 From: Marc Schlaich Date: Thu, 28 Feb 2013 14:29:20 +0100 Subject: [PATCH] build, windows: return an error code on failure --- vcbuild.bat | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vcbuild.bat b/vcbuild.bat index cd940991..2165bda5 100644 --- a/vcbuild.bat +++ b/vcbuild.bat @@ -79,7 +79,7 @@ goto have_gyp :gyp_install_failed echo Failed to download gyp. Make sure you have git installed, or echo manually install gyp into %~dp0build\gyp. -goto exit +exit /b 1 :have_gyp if not defined PYTHON set PYTHON="python" @@ -103,7 +103,7 @@ goto run @rem Build the sln with msbuild. :msbuild-found msbuild uv.sln /t:%target% /p:Configuration=%config% /p:Platform="%platform%" /clp:NoSummary;NoItemAndPropertyList;Verbosity=minimal /nologo -if errorlevel 1 goto exit +if errorlevel 1 exit /b 1 :run @rem Run tests if requested. @@ -115,7 +115,7 @@ goto exit :create-msvs-files-failed echo Failed to create vc project files. -goto exit +exit /b 1 :help echo vcbuild.bat [debug/release] [test/bench] [clean] [noprojgen] [nobuild] [x86/x64] [static/shared]