From b738d315fbf634f6c571234b8f028e6384eb42ec Mon Sep 17 00:00:00 2001 From: Brian White Date: Mon, 10 Feb 2014 03:23:22 -0500 Subject: [PATCH] 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). --- vcbuild.bat | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vcbuild.bat b/vcbuild.bat index 0dda6e2d..7f07a936 100644 --- a/vcbuild.bat +++ b/vcbuild.bat @@ -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