mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2024-11-23 18:24:13 +08:00
ci/msvc: Install both msvc2019 and msvc2022
Currently only msvc2019 are used This is did intentionally, so we have a history script install msvc2019 only within vs2022 Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26736>
This commit is contained in:
parent
14e624bf43
commit
5109790cf9
@ -23,7 +23,11 @@ Start-Process -NoNewWindow -Wait -FilePath C:\vs_buildtools.exe `
|
||||
"--nocache", `
|
||||
"--installPath", "C:\BuildTools", `
|
||||
"--add", "Microsoft.VisualStudio.Component.VC.Redist.14.Latest", `
|
||||
"--add", "Microsoft.VisualStudio.Component.VC.14.29.16.11.ATL", `
|
||||
"--add", "Microsoft.VisualStudio.Component.VC.ASAN", ` # MSVC 2022
|
||||
"--add", "Microsoft.VisualStudio.Component.VC.ATL", `
|
||||
"--add", "Microsoft.VisualStudio.Component.VC.ATLMFC", `
|
||||
"--add", "Microsoft.VisualStudio.Component.VC.Tools.x86.x64", `
|
||||
"--add", "Microsoft.VisualStudio.Component.VC.14.29.16.11.ATL", ` # MSVC 2019
|
||||
"--add", "Microsoft.VisualStudio.Component.VC.14.29.16.11.MFC", `
|
||||
"--add", "Microsoft.VisualStudio.ComponentGroup.VC.Tools.142.x86.x64", `
|
||||
"--add", "Microsoft.VisualStudio.Component.VC.Llvm.Clang", `
|
||||
|
@ -8,4 +8,10 @@ Import-Module (Join-Path $vsInstallPath "Common7\Tools\Microsoft.VisualStudio.De
|
||||
# VS2017 14.1 to 14.16 use -vcvars_ver=14.16
|
||||
# VS2019 14.20 to 14.29 use -vcvars_ver=14.29
|
||||
# VS2022 14.30 to 14.38 (not finished yet) use -vcvars_ver=14 to choose the newest version
|
||||
Enter-VsDevShell -VsInstallPath $vsInstallPath -SkipAutomaticLocation -DevCmdArguments '-vcvars_ver=14.29 -arch=x64 -no_logo -host_arch=amd64'
|
||||
|
||||
$vcvars_ver_arg=$args
|
||||
if ($null -eq $vcvars_ver_arg[0]) {
|
||||
$vcvars_ver_arg="-vcvars_ver=14.29"
|
||||
}
|
||||
|
||||
Enter-VsDevShell -VsInstallPath $vsInstallPath -SkipAutomaticLocation -DevCmdArguments "$vcvars_ver_arg -arch=x64 -no_logo -host_arch=amd64"
|
||||
|
Loading…
Reference in New Issue
Block a user