Fix windows build (#11689)

This commit is contained in:
Dylan Conway
2024-06-07 22:24:34 -07:00
committed by GitHub
parent 26201671d1
commit d92ebf2a99
2 changed files with 9 additions and 0 deletions

View File

@@ -24,6 +24,9 @@ if ($env:VSINSTALLDIR -eq $null) {
}
Push-Location $vsDir
try {
Import-Module 'C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\Tools\Microsoft.VisualStudio.DevShell.dll'
Enter-VsDevShell -VsInstallPath 'C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools' -DevCmdArguments '-arch=x64 -host_arch=x64'
} catch {
$launchps = (Join-Path -Path $vsDir -ChildPath "Common7\Tools\Launch-VsDevShell.ps1")
. $launchps -Arch amd64 -HostArch amd64
} finally { Pop-Location }