Skip to content

[Windows Arm64] Allow cross compilation using --target-platform option #129808

@loic-sharma

Description

@loic-sharma

Background

See: https://flutter.dev/go/windows-arm64

Once #129807 lands, flutter build windows will always use the host architecture as the target architecture. In other words, Flutter on an Arm64 machine is unable to create AMD64 executables.

Work

Add a --target-platform option to flutter build windows to allow changing the target architecture.

Using the --target-platform option should produce an error on the "beta" and "stable" release channels.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projecta: desktopRunning on desktopplatform-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