build: bail early if clean is invoked
authorJohan Bergström <bugs@bergstroem.nu>
Tue, 7 Jul 2015 22:06:13 +0000 (08:06 +1000)
committerJohan Bergström <bugs@bergstroem.nu>
Fri, 10 Jul 2015 04:32:45 +0000 (14:32 +1000)
On windows, there's no need to continue with the msbuild process
(signing, whatnot) when we only want to clean the project.

PR-URL: https://github.com/nodejs/io.js/pull/2127
Reviewed-By: Alexis Campailla <alexis@janeasystems.com>
vcbuild.bat

index 7fab85c..077fb21 100644 (file)
@@ -146,6 +146,7 @@ if defined nobuild goto sign
 @rem Build the sln with msbuild.
 msbuild node.sln /m /t:%target% /p:Configuration=%config% /clp:NoSummary;NoItemAndPropertyList;Verbosity=minimal /nologo
 if errorlevel 1 goto exit
+if "%target%" == "Clean" goto exit
 
 :sign
 @rem Skip signing if the `nosign` option was specified.