Skip to content

[Windows Arm64] Update tool to target Arm64 on Arm64 hosts #129807

Open
@loic-sharma

Description

@loic-sharma

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

  1. Add Windows Arm64 to the HostPlatform and TargetPlatform enums
  2. Update the Flutter Windows plugin templates to show how to use the target architecture to bundle pre-built libraries
  3. If on Arm64 host and the "beta" or "stable" release channels, produce a warning that an x64 executable will be built.
  4. If on Arm64 host and the "master" release channel,
    1. Use Abi.current() to determine the target architecture
    2. Download Windows Arm64 artifacts
  5. Update Windows Arm64 devicelab tests: build, run, benchmark

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projecta: desktopRunning on desktopplatform-host-armBuilding on an ARM-based platformplatform-target-armTargeting an ARM-based platformplatform-windowsBuilding on or for Windows specificallyteam-windowsOwned by the Windows platform teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-windowsTriaged by the Windows platform team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions