You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Build macOS desktop gen_snapshot_arm64 and gen_snapshot_x64 as arm64 binary to run natively on Apple Silicon #101138
Dart does not currently support targeting x64 from a non-x64 host dart-lang/sdk#49768. However gen_snapshot_arm64 can be compiled as arm64 and therefore run natively on an arm64 Mac. gen_snapshot_x64 can also be compiled as a universal binary for AOT (but not JIT) builds, which is all we need for macOS targets.
Compile macOS gen_snapshot_arm64 as arm64, and publish in the arm64 Flutter install (flutter_macos_arm64_*.zip), as well as the macOS desktop artifacts that get curled when upgrading on an arm64 Mac.
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.
changed the title [-]Build macOS desktop `gen_snapshot_arm64` as arm64 binary to run natively on Apple Silicon[/-][+]Build macOS desktop `gen_snapshot_arm64` and `gen_snapshot_x64` as arm64 binary to run natively on Apple Silicon[/+]on Jul 24, 2024
Activity
jmagman commentedon May 14, 2022
/cc @zanderso and @cbracken
jmagman commentedon Aug 24, 2022
@cbracken I know you're working on gen_snapshot refactoring, will that result in gen_snapshot always running natively on arm, even for creating x64 binaries per dart-lang/sdk@4f7bb16? Would like to stop requiring Rosetta for our developers, plus I'm getting pushback to installing Rosetta on our luci bots https://bugs.chromium.org/p/chromium/issues/detail?id=1354817#c11
cbracken commentedon Aug 25, 2022
Yes this is part of #103386.
Adds documentation for core snapshot targets (#36434)
[macOS] Deduplicate gen_snapshot creation targets (#36455)
[macOS] Clean up gen_snapshot copy invocation (#36461)
Adds documentation for core snapshot targets (flutter-team-archive#36434
[macOS] Deduplicate gen_snapshot creation targets (flutter-team-archi…
[macOS] Clean up gen_snapshot copy invocation (flutter-team-archive#3…
28 remaining items
[tools] Make SnapshotType.platform non-nullable (#146958)
[tools] Make SnapshotType.platform non-nullable (flutter#146958)
[macOS] Generate universal gen_snapshots (#52885)
Reverts "[macOS] Generate universal gen_snapshots (#52885)" (#52913)
jmagman commentedon May 18, 2024
The fix was reverted, reopening flutter-team-archive/engine#52913
[macOS] Generate universal gen_snapshots (#53524)
jmagman commentedon Jun 24, 2024
Fixed by flutter-team-archive/engine#53524
github-actions commentedon Jul 9, 2024
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.[-]Build macOS desktop `gen_snapshot_arm64` as arm64 binary to run natively on Apple Silicon[/-][+]Build macOS desktop `gen_snapshot_arm64` and `gen_snapshot_x64` as arm64 binary to run natively on Apple Silicon[/+]