Browse files

build, windows: return an error code on failure

  • Loading branch information...
1 parent 49d2ae3 commit 0ad46bdb56959aee089aa261b15bed7af177de5f @schlamar schlamar committed with bnoordhuis Feb 28, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 vcbuild.bat
@@ -79,7 +79,7 @@ goto have_gyp
echo Failed to download gyp. Make sure you have git installed, or
echo manually install gyp into %~dp0build\gyp.
-goto exit
+exit /b 1
if not defined PYTHON set PYTHON="python"
@@ -103,7 +103,7 @@ goto run
@rem Build the sln with msbuild.
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
@rem Run tests if requested.
@@ -115,7 +115,7 @@ goto exit
echo Failed to create vc project files.
-goto exit
+exit /b 1
echo vcbuild.bat [debug/release] [test/bench] [clean] [noprojgen] [nobuild] [x86/x64] [static/shared]

0 comments on commit 0ad46bd

Please sign in to comment.