Skip to content

Commit c726b13

Browse files
committed
Update environment option in vcbuild.bat script to filter Visual Studio version
1 parent 8452ae1 commit c726b13

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

vcbuild.bat

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,7 @@ call :getnodeversion || exit /b 1
112112

113113
@rem Set environment for msbuild
114114

115-
if "%target_env%"=="vc2015" goto vc-set-2015
116-
if "%target_env%"=="vc2013" goto vc-set-2013
117-
118-
:vc-set-2015
115+
if defined target_env if "%target_env%" NEQ "vc2015" goto vc-set-2013
119116
@rem Look for Visual Studio 2015
120117
echo Looking for Visual Studio 2015
121118
if not defined VS140COMNTOOLS goto vc-set-2013
@@ -139,6 +136,7 @@ set PLATFORM_TOOLSET=v140
139136
goto msbuild-found
140137

141138
:vc-set-2013
139+
if defined target_env if "%target_env%" NEQ "vc2013" goto msbuild-not-found
142140
@rem Look for Visual Studio 2013
143141
echo Looking for Visual Studio 2013
144142
if not defined VS120COMNTOOLS goto msbuild-not-found

0 commit comments

Comments
 (0)