-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[macOS] Only bundle gen_snapshot_${target_arch} #53971
base: main
Are you sure you want to change the base?
[macOS] Only bundle gen_snapshot_${target_arch} #53971
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
On most platforms, we support only a single host architecture and a single target architecture per build. macOS supports both arm64 and x86_64 host platforms via multi-arch (universal) binaries generated with the `lipo` tool and as such, we have two gen_snapshot binaries, one for each target architecture. These binaries are universal binaries named `gen_snapshot_${target_arch}`. The unqualified `gen_snapshot` binary used for other platforms is unused on macOS. This eliminates the unqualified binary from the uploaded bundles used by the tool.
On most platforms, we support only a single host architecture and a single target architecture per build. macOS supports both arm64 and x86_64 host platforms via multi-arch (universal) binaries generated with the `lipo` tool and as such, we have two gen_snapshot binaries, one for each target architecture. These binaries are universal binaries named `gen_snapshot_${target_arch}`. The unqualified `gen_snapshot` binary used for other platforms is unused on macOS. This eliminates the unqualified binary from the uploaded bundles used by the tool.
b9b216f
to
95bb3f4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
This pull request executed golden file tests, but it has not been updated in a while (20 days). Test results from Gold expire after as many days, so this pull request will need to be updated with a fresh commit in order to get results from Gold. |
This pull request has been changed to a draft. The currently pending flutter-gold status will not be able to resolve until a new commit is pushed or the change is marked ready for review again. |
(PR triage): @cbracken is this still on your radar? |
I'll file a proper issue for this, self-assign and then close this once I've collected up the error messages. Thanks for the reminder. |
On most platforms, we support only a single host architecture and a single target architecture per build. macOS supports both arm64 and x86_64 host platforms via multi-arch (universal) binaries generated with the
lipo
tool and as such, we have two gen_snapshot binaries, one for each target architecture. These binaries are universal binaries namedgen_snapshot_${target_arch}
. The unqualifiedgen_snapshot
binary used for other platforms is unused on macOS.This eliminates the unqualified binary from the uploaded bundles used by the tool.
Cleanup related to:
Issue: flutter/flutter#101138
Issue: flutter/flutter#69157
Pre-launch Checklist
///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.