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
Feature request (build): enable engine builds optimized for size #176685
As a developer targeting embedded devices, I wish to build the flutter engine optimized for size rather than speed as it is advantageous on some platforms to reduce the binary footprint as much as possible.
Proposal
Add a flag to the engine/src/flutter/tools/gn tool to enable size optimizations, eg
/engine/src/flutter/tools/gn --optimize-for-size
The flags --optimize-for-size and --unoptimized should probably be mutually exclusive
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.
Activity
add gn flag to optimize builds for size (#176835)
add gn flag to optimize builds for size (#176835)
github-actions commentedon Nov 10, 2025
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.add gn flag to optimize builds for size (flutter#176835)