Skip to content

Feature request (build): enable engine builds optimized for size #176685

Closed

Description

@planetmarshall

Use case

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

Activity

  1. added
    in triagePresently being triaged by the triage team
    c: proposalA detailed proposal for a change to Flutter
    c: new featureNothing broken; request for a new capability
    a: buildBuilding flutter applications with the tool
    engineflutter/engine related. See also e: labels.
    team-toolOwned by Flutter Tool team
    fyi-engineFor the attention of Engine team
    and removed
    in triagePresently being triaged by the triage team
    on Oct 8, 2025
  2. added
    P2Important issues not at the top of the work list
    and removed
    team-toolOwned by Flutter Tool team
    fyi-engineFor the attention of Engine team
    on Oct 13, 2025
  3. added a commit that references this issue on Oct 27, 2025
    e0ff789
  4. added a commit that references this issue on Oct 31, 2025
    05f4372
  5. github-actions commented on Nov 10, 2025

    @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.

  6. locked as resolved and limited conversation to collaborators on Nov 10, 2025
  7. added a commit that references this issue on Dec 10, 2025
    8e17364
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: buildBuilding flutter applications with the toolc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterengineflutter/engine related. See also e: labels.team-engineOwned by Engine teamtriaged-engineTriaged by Engine team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions