Repository navigation
Closed
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.platform-macosBuilding on or for macOS specificallyBuilding on or for macOS specificallyteam-engineOwned by Engine teamOwned by Engine teamtriaged-engineTriaged by Engine teamTriaged by Engine team
Description
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:
- The Fuchsia clang toolchain for arm64 macOS is not yet available.
- Swiftshader (used by our engine tests) doesn't support building as an arm64 binary. Use SwANGLE (OpenGL on SwiftShader Vulkan) instead of SwiftShader OpenGL in the unit-tests harnesses. #90425
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_snapshotfor arm64 macs rather than the current setup of running (host: x64 target: simarm64)gen_snapshotunder 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_snapshottoday 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_snapshotwe use today, under Rosetta.
- Ask Chromium to remove Rosetta from Mac bots, reverting https://chrome-internal.googlesource.com/infra/puppet/+/6ed442c2c821fb2aeb0bf7f5f367d096b5da391a, see also https://bugs.chromium.org/p/chromium/issues/detail?id=1354817
Doing this is necessary to enable building unit tests in the host arm64 build on macOS. #115322 is the relevant sub-issue.
Reacted by eggfly, Damian Bast, Kismet , Kyle Seongwoo Jun, borjandev, Matej Knopp, Jenn Magder, ritchie, Karol, Gary and 25 more
Reacted by multizone-dev and Man Huynh
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.platform-macosBuilding on or for macOS specificallyBuilding on or for macOS specificallyteam-engineOwned by Engine teamOwned by Engine teamtriaged-engineTriaged by Engine teamTriaged by Engine team
Type
Projects
- StatusShow more project fieldsDone
Activity
donmanueldev commentedon May 10, 2022
oh this is great.
Support building the engine on Apple Silicon Macs (#33244)
dnfield commentedon Jun 2, 2022
I'm working on rolling swiftshader right now which should unblock arm64.
dnfield commentedon Jun 2, 2022
Also requires #90425
[vm] Add a stub simx64.
Remove architecture restriction from //flutter/testing:opengl.
Remove architecture restriction from //flutter/testing:opengl. (#35098)
Remove architecture restriction from //flutter/testing:opengl. (flutt…
GN toolchain setup for host-arm64 on Mac. (#599)
Remove architecture restriction from //flutter/testing:opengl. (flutt…
59 remaining items
Support building the engine on Apple Silicon Macs (flutter-team-archi…
[macOS] Generate universal gen_snapshots (flutter-team-archive/engine…
Don't use intel clang on arm64 macs (flutter-team-archive/engine#54291)
Remove architecture restriction from //flutter/testing:opengl. (flutt…
Adds documentation for core snapshot targets (flutter-team-archive/en…
[macOS] Deduplicate gen_snapshot creation targets (flutter-team-archi…
[macOS] Clean up gen_snapshot copy invocation (flutter-team-archive/e…
Generalise gen_snapshots.py to strip_bitcode.py (flutter-team-archive…
Use strip_bitcode for create_arm_gen_snapshot (flutter-team-archive/e…
[macOS][iOS] Eliminate strip_bitcode action (flutter-team-archive/eng…
[macOS] Generate universal gen_snapshots (flutter-team-archive/engine…
Reverts "[macOS] Generate universal gen_snapshots (#52885)" (flutter-…
github-actions commentedon Oct 14, 2026
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 -vand a minimal reproduction of the issue.