Skip to content
This repository was archived by the owner on Nov 21, 2018. It is now read-only.

Commit b738d31

Browse files
mscdexsaghul
authored andcommitted
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).
1 parent 66ab389 commit b738d31

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

vcbuild.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ shift
4141
goto next-arg
4242
:args-done
4343

44+
if defined VCINSTALLDIR goto select-target
45+
4446
@rem Look for Visual Studio 2013
4547
if not defined VS120COMNTOOLS goto vc-set-2012
4648
if not exist "%VS120COMNTOOLS%\..\..\vc\vcvarsall.bat" goto vc-set-2012

0 commit comments

Comments
 (0)