Skip to content

☂️ [macOS] Support building engine on Apple Silicon without Rosetta #103386

Closed

Description

@cbracken

Currently, in order to build the engine on an Apple Silicon Mac, either as a host build or a target build, we need to build under Rosetta. This is for several reasons:

As such, we currently hardcode host_cpu to x64 for all macOS engine builds (including cross-compiles targeting arm64), and as such these builds are run under Rosetta.

Once this work is done:

  • We'll want to switch to the (host: arm64 target: arm64) gen_snapshot for arm64 macs rather than the current setup of running (host: x64 target: simarm64) gen_snapshot under Rosetta in the tool. We already support building on arm64 macs) rather than the (host: x64 target: simarm64) gen_snapshot.
  • There is no (host: arm64 target: simx64) gen_snapshot today since there's no support for this in the Dart SDK today. Until that work is prioritised, we'll need to continue generating x64 AOT code using the (host: x64 target: x64) gen_snapshot we use today, under Rosetta.

Doing this is necessary to enable building unit tests in the host arm64 build on macOS. #115322 is the relevant sub-issue.

Activity

  1. added
    engineflutter/engine related. See also e: labels.
    platform-macosBuilding on or for macOS specifically
    P2Important issues not at the top of the work list
    and removed on May 10, 2022
  2. donmanueldev commented on May 10, 2022

    @donmanueldev

    oh this is great.

  3. dnfield commented on Jun 2, 2022

    @dnfield
    Contributor

    I'm working on rolling swiftshader right now which should unblock arm64.

  4. dnfield commented on Jun 2, 2022

    @dnfield
    Contributor

    Also requires #90425

  5. added a commit that references this issue on Jul 29, 2022
  6. 59 remaining items

  7. github-actions commented on Oct 14, 2026

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  8. locked as resolved and limited conversation to collaborators on Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work listengineflutter/engine related. See also e: labels.platform-macosBuilding on or for macOS specificallyteam-engineOwned by Engine teamtriaged-engineTriaged by Engine team

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions