Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@dnfield
Copy link
Contributor

@dnfield dnfield commented Aug 27, 2019

Bitcode vastly bloats the static library size - for profile:

dnfield@mbp:Flutter.framework$ xcrun bitcode_strip -r Flutter -o Flutter.nobitcode
dnfield@mbp:Flutter.framework$ du -hs Flutter Flutter.nobitcode 
413M    Flutter
 62M    Flutter.nobitcode

See also realm/realm-swift#4450 (comment) for analysis of how similar issues impact Realm.

This PR changes the default behavior so that profile also gets -fembed-bitcode-marker, which results in just placeholders for Bitcode and a much smaller binary. It will mean that you cannot recompile from bitcode in profile mode, which would affect archiving your app for the app store in that mode - but we wouldn't really want users to ship profile mode binaries anyway, and if it's absolutely required they could do a local build with the GN args edited.

Copy link
Member

@cbracken cbracken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM stamp from a Japanese personal seal

@dnfield dnfield merged commit 0cfee1f into flutter:master Aug 27, 2019
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Aug 27, 2019
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Aug 27, 2019
engine-flutter-autoroll added a commit to flutter/flutter that referenced this pull request Aug 28, 2019
[email protected]:flutter/engine.git/compare/bf7796611dc1...f93b9cb

git log bf77966..f93b9cb --no-merges --oneline
2019-08-27 [email protected] Roll src/third_party/dart 4015a79210..f17d0563fa (5 commits)
2019-08-27 [email protected] Optionally strip bitcode when creating ios framework (flutter/engine#11530)
2019-08-27 [email protected] Bitcode only for release (flutter/engine#11520)
2019-08-27 [email protected] Strip bitcode from gen_snapshot (flutter/engine#11528)
2019-08-27 [email protected] Reuse texture cache in ios_external_texture_gl (flutter/engine#11524)
2019-08-27 [email protected] Roll src/third_party/skia 4b5d65561943..6064ecf7e993 (1 commits) (flutter/engine#11500)
2019-08-27 [email protected] Assert that the JUnit tests are running on Java 8 (flutter/engine#11466)
2019-08-27 [email protected] Roll src/third_party/dart e878bdafe9..4015a79210 (15 commits)


If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC [email protected] on the revert to ensure that a human
is aware of the problem.

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants