-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Add omit-type-checks flag for wasm builds #124341
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
This pull request has been changed to a draft. The currently pending flutter-gold status will not be able to resolve until a new commit is pushed or the change is marked ready for review again. For more guidance, visit Writing a golden file test for Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
|
Trying a before/after: Material 3 app (with some local tweaks) normal: 6,940,575 bytes - 5,268,557 w/ wasm-opt with normal: 6,720,745 bytes - 5,045,495 w/ wasm-opt |
eyebrowsoffire
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you write a unit test that actually ensures we properly add the flag? Maybe use
flutter/packages/flutter_tools/test/general.shard/build_system/targets/web_test.dart
Line 777 in 2379b18
| test('Dart2WasmTarget invokes dart2wasm with dart defines', () => testbed.run(() async { |
eyebrowsoffire
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
|
auto label is removed for flutter/flutter, pr: 124341, due to - The status or check suite Windows framework_tests_widgets has failed. Please fix the issues identified (or deflake) before re-applying this label. |
|
auto label is removed for flutter/flutter, pr: 124341, due to - The status or check suite Mac framework_tests_libraries has failed. Please fix the issues identified (or deflake) before re-applying this label. |
Add omit-type-checks flag for wasm builds
Fixes #124177