build, windows: return an error code on failure
This commit is contained in:
parent
49d2ae33ef
commit
0ad46bdb56
@ -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]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user