dart-sdk/pkg/dart2wasm
Aske Simon Christensen 6c7604291c [dart2wasm] Build platform dill and compile dart2wasm to AOT snapshots
This adds a --platform= option to dart2wasm to read the SDK libraries
from that dill file instead of compiling them from source every time.
If the option is not given, the SDK libraries are compiled, like before.

Also adds a "dart2wasm" build target, which will build the dart2wasm
platform dill and compile dart2wasm to two AOT snapshots (with and
without asserts). The dart2wasm scripts in sdk/bin are updated to run
via these snapshots and use this platform dill.

This speeds up test runs for the dart2wasm-hostasserts-linux-x64-d8
configuration by approximately 45x.

Change-Id: If2c7750a6eb39725310745f887792784d0dfc583
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/243624
Commit-Queue: Aske Simon Christensen <askesc@google.com>
Reviewed-by: William Hesse <whesse@google.com>
Reviewed-by: Joshua Litt <joshualitt@google.com>
2022-05-10 10:06:06 +00:00
..
bin [dart2wasm] Build platform dill and compile dart2wasm to AOT snapshots 2022-05-10 10:06:06 +00:00
lib [dart2wasm] Build platform dill and compile dart2wasm to AOT snapshots 2022-05-10 10:06:06 +00:00
dart2wasm.md [dart2wasm] Build platform dill and compile dart2wasm to AOT snapshots 2022-05-10 10:06:06 +00:00
OWNERS
pubspec.yaml [dart2wasm] Basic support for js interop annotations. 2022-04-12 18:26:02 +00:00