Skip to content

Commit

Permalink
build,win: skip vcvarsall.bat if env is set
Browse files Browse the repository at this point in the history
PR-URL: #13806
Fixes: #13765
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Kunal Pathak <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
refack committed Jul 9, 2017
1 parent d69ecc6 commit 8206a01
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion vcbuild.bat
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,12 @@ if defined msi (
goto wix-not-found
)
)
@rem VS2015 vsvarsall is quick, so run anyway

@rem check if VS2015 is already setup
if "_%VisualStudioVersion%_" == "_14.0_" if "_%VCVARS_VER%_" == "_140_" goto found_vs2015
call "%VS140COMNTOOLS%\..\..\vc\vcvarsall.bat"
SET VCVARS_VER=140
:found_vs2015
if not defined VCINSTALLDIR goto msbuild-not-found
@rem Visual C++ Build Tools 2015 does not define VisualStudioVersion
echo Found MSVS version 14.0
Expand Down

0 comments on commit 8206a01

Please sign in to comment.