Skip to content

Commit

Permalink
support toolset
Browse files Browse the repository at this point in the history
  • Loading branch information
actboy168 committed Jun 11, 2024
1 parent d1f3e14 commit 5631a1a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion compile/msvc/find_msvc.bat
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ FOR /f "usebackq tokens=*" %%i in (`"%ProgramFiles%\Microsoft Visual Studio\Inst
)
IF "%InstallDir%" == "" echo "Can not find msvc." && exit 1

CALL compile\msvc\find_toolset.bat
CALL compile\msvc\find_winsdk.bat
SET VSCMD_SKIP_SENDTELEMETRY=1
CALL "%InstallDir%\Common7\Tools\vsdevcmd.bat" -arch=%ARCH% -host_arch=%ARCH% -winsdk=%WindowsSDKVersion% 1>nul
CALL "%InstallDir%\Common7\Tools\vsdevcmd.bat" -arch=%ARCH% -host_arch=%ARCH% -winsdk=%WindowsSDKVersion% -vcvars_ver=%VCToolsVersion% 1>nul
:QUIT
4 changes: 4 additions & 0 deletions compile/msvc/find_toolset.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
for /F %%A in ('type "%InstallDir%\VC\Auxiliary\Build\Microsoft.VCToolsVersion.default.txt"') do (
set "VCToolsVersion=%%A"
)
exit /B 0

0 comments on commit 5631a1a

Please sign in to comment.