Background
See: https://flutter.dev/go/windows-arm64
Once #129805 lands, Arm64 hosts will be able to build x64 executables. These executables run using x64 emulation.
Solution
- Add Windows Arm64 to the
HostPlatform and TargetPlatform enums
- Update the Flutter Windows plugin templates to show how to use the target architecture to bundle pre-built libraries
- If on Arm64 host and the "beta" or "stable" release channels, produce a warning that an x64 executable will be built.
- If on Arm64 host and the "master" release channel,
- Use
Abi.current() to determine the target architecture
- Download Windows Arm64 artifacts
- Update Windows Arm64 devicelab tests: build, run, benchmark
Background
See: https://flutter.dev/go/windows-arm64
Once #129805 lands, Arm64 hosts will be able to build x64 executables. These executables run using x64 emulation.
Solution
HostPlatformandTargetPlatformenumsAbi.current()to determine the target architecture