build: skip vcvarsall if already set up

Without this, running vcbuild repeatedly for some time will cause errors with msbuild saying the command line is too long (due to concatenation happening in vcvarsall).
This commit is contained in:
Brian White 2014-02-10 03:23:22 -05:00 committed by Saúl Ibarra Corretgé
parent 66ab38918c
commit b738d315fb

View File

@ -41,6 +41,8 @@ shift
goto next-arg
:args-done
if defined VCINSTALLDIR goto select-target
@rem Look for Visual Studio 2013
if not defined VS120COMNTOOLS goto vc-set-2012
if not exist "%VS120COMNTOOLS%\..\..\vc\vcvarsall.bat" goto vc-set-2012