Reverts "Enable native compilation for windows-arm64 " (#141809)
Reverts flutter/flutter#137618 Initiated by: Jasguerrero This change reverts the following previous change: Original Description: It's now possible to natively compile a flutter app for windows-arm64. Cross-compilation is not yet implemented. Uses arm64 artifacts now available for Dart/Flutter. Platform detection is based on Abi class, provided by Dart. Depending if Dart is an arm64 or x64 binary, the Abi is set accordingly. Initial bootstrap of dart artifacts (update_dart_sdk.ps1) is checking PROCESSOR_ARCHITECTURE environment variable, which is the way to detect host architecture on Windows. This is available only for master channel (on other channels, it fallbacks to windows-x64). On windows-x64, it produces an x64 app. On windows-arm64, it produces an arm64 app.
This commit is contained in:
@@ -47,22 +47,7 @@ if (-not $dartSdkBaseUrl) {
|
||||
if ($engineRealm) {
|
||||
$dartSdkBaseUrl = "$dartSdkBaseUrl/$engineRealm"
|
||||
}
|
||||
|
||||
# It's important to use the native Dart SDK as the default target architecture
|
||||
# for Flutter Windows builds depend on the Dart executable's architecture.
|
||||
$dartZipNameX64 = "dart-sdk-windows-x64.zip"
|
||||
$dartZipNameArm64 = "dart-sdk-windows-arm64.zip"
|
||||
$dartZipName = $dartZipNameX64
|
||||
if ($env:PROCESSOR_ARCHITECTURE -eq "ARM64") {
|
||||
$dartSdkArm64Url = "$dartSdkBaseUrl/flutter_infra_release/flutter/$engineVersion/$dartZipNameArm64"
|
||||
Try {
|
||||
Invoke-WebRequest -Uri $dartSdkArm64Url -UseBasicParsing -Method Head | Out-Null
|
||||
$dartZipName = $dartZipNameArm64
|
||||
}
|
||||
Catch {
|
||||
Write-Host "The current channel's Dart SDK does not support Windows Arm64, falling back to Windows x64..."
|
||||
}
|
||||
}
|
||||
$dartZipName = "dart-sdk-windows-x64.zip"
|
||||
$dartSdkUrl = "$dartSdkBaseUrl/flutter_infra_release/flutter/$engineVersion/$dartZipName"
|
||||
|
||||
if ((Test-Path $dartSdkPath) -or (Test-Path $dartSdkLicense)) {
|
||||
|
||||
Reference in New Issue
Block a user