Skip to content

Commit 47e2c5c

Browse files
committed
build: bail early if clean is invoked
On windows, there's no need to continue with the msbuild process (signing, whatnot) when we only want to clean the project. PR-URL: #2127 Reviewed-By: Alexis Campailla <[email protected]>
1 parent 842eb5b commit 47e2c5c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

vcbuild.bat

+1
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ if defined nobuild goto sign
146146
@rem Build the sln with msbuild.
147147
msbuild node.sln /m /t:%target% /p:Configuration=%config% /clp:NoSummary;NoItemAndPropertyList;Verbosity=minimal /nologo
148148
if errorlevel 1 goto exit
149+
if "%target%" == "Clean" goto exit
149150

150151
:sign
151152
@rem Skip signing if the `nosign` option was specified.

0 commit comments

Comments
 (0)