Skip to content

flutter engine binary size increased threefold in 3.32 #181983

Closed

Description

@martinetd

Steps to reproduce

  1. build flutter engine for linux host:
./flutter/tools/gn --runtime-mode debug --unoptimized --embedder-for-target --disable-desktop-e
mbeddings --no-build-embedder-examples --enable-fontconfig --no-goma
ninja -C out/host_debug_unopt
  1. observe libflutter_engine.so size

Expected results

3.29.3 size:

output-cf56914b32/elinux-arm64-debug.zip
 83138488  2026-01-27 15:45   libflutter_engine.so
output-cf56914b32/elinux-arm64-profile.zip
 19034848  2026-01-27 15:45   libflutter_engine.so
output-cf56914b32/elinux-arm64-release.zip
 14328472  2026-01-27 15:45   libflutter_engine.so
output-cf56914b32/elinux-x64-debug.zip
 84000816  2026-01-27 15:45   libflutter_engine.so
output-cf56914b32/elinux-x64-profile.zip
 20180120  2026-01-27 15:45   libflutter_engine.so
output-cf56914b32/elinux-x64-release.zip
 15460712  2026-01-27 15:45   libflutter_engine.so

Actual results

3.32.6 size

output-72f2b18bb0/elinux-arm64-debug.zip
385555440  2026-01-28 18:25   libflutter_engine.so
output-72f2b18bb0/elinux-arm64-profile.zip
 53268200  2026-01-28 18:25   libflutter_engine.so
output-72f2b18bb0/elinux-arm64-release.zip
 43138224  2026-01-28 18:25   libflutter_engine.so
output-72f2b18bb0/elinux-x64-debug.zip
381289080  2026-01-28 18:25   libflutter_engine.so
output-72f2b18bb0/elinux-x64-profile.zip
 52557792  2026-01-28 18:25   libflutter_engine.so
output-72f2b18bb0/elinux-x64-release.zip
 42605904  2026-01-28 18:25   libflutter_engine.so

Since there is nowhere to write analysis I'll add it here.
This changed in #161546 that tried to make gn stripped option "dynamic", not stripping for android and stripping for other, but the check was never used because parser store_true default value is False and not None

The PR is trivial and will follow, but if it was meant to disable stripping everywhere then the else case should be removed and help fixed.

Code sample

not relevant

Screenshots or Video

not relevant

Logs

not relevant

Flutter Doctor output

not relevant

Activity

  1. martinetd commented on Feb 6, 2026

    @martinetd
    ContributorAuthor

    (BTW this is the same as #169330 but that was closed/locked as intentional: this doesn't look intentional to me given the patch explicitly checks for android and the claim was for linux target, but if it is let's fix the help and gn code instead...)

  2. added a commit that references this issue on Feb 10, 2026
    dac6b3e
  3. added a commit that references this issue on Feb 19, 2026
    4b78636
  4. github-actions commented on Feb 24, 2026

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

  5. locked as resolved and limited conversation to collaborators on Feb 24, 2026
  6. added a commit that references this issue on Mar 26, 2026
    1b32ac9
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions