[vcpkg] Fix bootstrap for windows arm64 (#22605)

* Update bootstrap.ps1 to properly support arm64

* Add tls12-download-arm64 from 2021-12-09 release

* Add reference to tls12-download-arm64 back in

* Update scripts/bootstrap.ps1

Revert back to x86 downloader

Co-authored-by: nicole mazzuca <83086508+strega-nil-ms@users.noreply.github.com>

* Revert "Add tls12-download-arm64 from 2021-12-09 release"

This reverts commit 26273191d2.

Co-authored-by: nicole mazzuca <83086508+strega-nil-ms@users.noreply.github.com>
This commit is contained in:
Jeremy Sinclair 2022-01-21 14:10:58 -05:00 committed by GitHub
parent 6fdcbc5e9d
commit eeabfad146
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,8 +46,8 @@ while (!($vcpkgRootDir -eq "") -and !(Test-Path "$vcpkgRootDir\.vcpkg-root"))
Write-Verbose "Examining $vcpkgRootDir for .vcpkg-root - Found"
$versionDate = '2021-12-09'
if ($env:PROCESSOR_ARCHITECTURE -eq 'ARM64') {
& "$scriptsDir/tls12-download-arm64.exe" github.com "/microsoft/vcpkg-tool/releases/download/$versionDate/vcpkg-arm64.exe" "$vcpkgRootDir\vcpkg.exe"
if ($env:PROCESSOR_ARCHITECTURE -eq 'ARM64' -or $env:PROCESSOR_IDENTIFIER -match "ARMv[8,9] \(64-bit\)") {
& "$scriptsDir/tls12-download.exe" github.com "/microsoft/vcpkg-tool/releases/download/$versionDate/vcpkg-arm64.exe" "$vcpkgRootDir\vcpkg.exe"
} else {
& "$scriptsDir/tls12-download.exe" github.com "/microsoft/vcpkg-tool/releases/download/$versionDate/vcpkg.exe" "$vcpkgRootDir\vcpkg.exe"
}