Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

build: skip vcvarsall if already set up #7087

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 4 additions & 1 deletion vcbuild.bat
Expand Up @@ -96,9 +96,11 @@ SETLOCAL
ENDLOCAL

:msbuild
@rem Skip project generation if requested.
@rem Skip project build if requested.
if defined nobuild goto sign

if defined VCINSTALLDIR goto msbuild-found

@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
Expand All @@ -121,6 +123,7 @@ if not defined VS100COMNTOOLS goto msbuild-not-found
if not exist "%VS100COMNTOOLS%\..\..\vc\vcvarsall.bat" goto msbuild-not-found
call "%VS100COMNTOOLS%\..\..\vc\vcvarsall.bat"
if not defined VCINSTALLDIR goto msbuild-not-found
set GYP_MSVS_VERSION=2010
goto msbuild-found

:msbuild-not-found
Expand Down