Skip to content

Feature request (build): add option to tune for specific CPU #176870

@planetmarshall

Description

@planetmarshall

Use case

As a developer cross-compiling the flutter engine for a specific embedded platform, I want to specify the CPU model in order to get the best performance from the compiled code.

Proposal

Add a engine/src/flutter/tools/gn option --cpu-tune or similar that passes a specifc CPU variant through to the compiler's -mtune flag.

There is already support for this in the build via the arm_tune gn argument in arm.gni, for ARM CPUs. It just needs some support from the gn.py frontend.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listc: 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