Skip to content

Commit 4001795

Browse files
committed
update native\windows\vcvars64.bat
1 parent cf8fccc commit 4001795

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

native/windows/vcvars64.bat

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
@echo off
22
echo Microsoft Visual C++ 2026 compiler setup
33

4-
if not "%VCVER%"=="" goto end
5-
64
SET VCTYPE=Community
75
SET VCYEAR=18
86
SET VCVER=14.50.35717
@@ -17,6 +15,8 @@ echo WINVER=%WINVER%
1715

1816
if "%1"=="detect" goto detect
1917

18+
if not "%VisualStudioVersion%"=="" goto end
19+
2020
::vcpkg
2121
set VCPKG_DEFAULT_TRIPLET=x64-windows
2222
::set VCPKG=c:\program files\vcpkg
@@ -69,7 +69,9 @@ set Platform=x64
6969
goto end
7070

7171
:detect
72-
dir "%MSVS%\%VCYEAR%\%VCTYPE%\VC\Tools\MSVC\"
73-
dir "%MSSDK%\10\bin\"
72+
echo Detecting MS VC Tools Versions...
73+
dir /b "%MSVS%\%VCYEAR%\%VCTYPE%\VC\Tools\MSVC\"
74+
echo Detecting MS SDK Versions...
75+
dir /b "%MSSDK%\10\bin\"
7476

7577
:end

0 commit comments

Comments
 (0)