Skip to content

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

@planetmarshall

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

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