Files
vim-mirror/src/msvc2022.bat
T
K.Takata 7784fac15f patch 9.2.0474: MS-Windows: hard to tell which Visual Studio version was selected with MSVC
Problem:  When running msvc*.bat there is no indication of which
          Visual Studio version and target architecture got
          selected.
Solution: After vcvarsall.bat returns, echo the VS version, VC
          tools version and target architecture, and set the
          Command Prompt title accordingly (Ken Takata).

closes: #20193

Signed-off-by: K.Takata <kentkt@csc.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2026-05-11 16:58:24 +00:00

18 lines
460 B
Batchfile

@echo off
rem To be used on MS-Windows for Visual C++ 2022.
rem See INSTALLpc.txt for information.
rem
rem Usage:
rem For x86 builds run this with "x86" option:
rem msvc2022 x86
rem For x64 builds run this with "x64" option:
rem msvc2022 x64
set "VSVEROPT=-version [17.0^,18.0^)"
call "%~dp0msvc-latest.bat" %*
set VSVEROPT=
if defined VCToolsVersion (
echo VS 2022 ^(%VCToolsVersion%^) %VSCMD_ARG_TGT_ARCH%
title VS 2022 %VSCMD_ARG_TGT_ARCH%
)