Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

build, windows: return an error code on failure

  • Loading branch information...
commit 0ad46bdb56959aee089aa261b15bed7af177de5f 1 parent 49d2ae3
@schlamar schlamar authored bnoordhuis committed
Showing with 3 additions and 3 deletions.
  1. +3 −3 vcbuild.bat
View
6 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]

0 comments on commit 0ad46bd

Please sign in to comment.
Something went wrong with that request. Please try again.