flutter/packages/flutter_tools/test
Martin Kustermann abadf9ff8c
Use dart compile wasm for wasm compilations (#143298)
* Flags to `dart compile wasm`

Some options are not relevant to a standalone user of `dart compile
wasm` (e.g. specyfing dart-sdk, platform file etc). => Those aren't
offered by the `dart compile wasm` tool directly. => We use the
`--extra-compiler-option=` instead which passes through arbitrary
options to the dart2wasm compiler. => We don't maintain compatibility of
those options, if we update them we'll ensure to also update flutter
tools

* Binaryen optimization passes

This change will mean we use the binaryen flags from Dart SDK which are
slightly different from the ones in flutter.

* Optimization configuration

This change will also start using the more standardized `-O` flag for
determining optimization levels. The meaning of those flags have been
mostly aligned with dart2js (with some differences remaining).

* Minimization

Using the new optimization flags, namely `-O4` for `--wasm-opt=full`,
will automatically enable the new `--minify` support. Minification is
Dart semantics preserving but changes the `<obj>.runtimeType.toString()`
to use minified names (just as in dart2js).

* Code size changes

  Overall this change will reduce wonderous code size by around 10%.

Issue https://github.com/dart-lang/sdk/issues/54675
2024-02-14 11:15:14 +01:00
..
android_preview_integration.shard [Re-re-land] Enforce a policy on supported Gradle, Java, AGP, and KGP versions (#143341) 2024-02-13 15:44:17 +00:00
commands.shard Dual compile reland (#143262) 2024-02-13 20:02:10 +00:00
data make asset_test.dart tests not dependent on context (#141331) 2024-01-11 18:08:07 +00:00
general.shard Use dart compile wasm for wasm compilations (#143298) 2024-02-14 11:15:14 +01:00
host_cross_arch.shard Move iOS content validation devicelab test into tool integration test (#142272) 2024-01-26 18:04:09 +00:00
integration.shard Dual compile reland (#143262) 2024-02-13 20:02:10 +00:00
src Reverts "Improve build output for all platforms" (#143125) 2024-02-07 22:44:19 +00:00
web.shard Dual compile reland (#143262) 2024-02-13 20:02:10 +00:00