commit | 89060a64e92095f7b05bc05bdcba4d8057c5bc8a | [log] [tgz] |
---|---|---|
author | Martin Kustermann <kustermann@google.com> | Wed Jan 24 14:38:41 2024 +0000 |
committer | Commit Queue <dart-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Jan 24 14:38:41 2024 +0000 |
tree | 6d8d15c3947900b156a3bef217b452c6f8118a08 | |
parent | 462360f3db48218abb0d9e2eb6c7fe0143216087 [diff] |
[dart2wasm] Make `dart compile wasm` pass through -D & --minify flags to dart2wasm This also fixes some code that was assuming the args parser returns `Map<String, String>` for the `--define` multi-option, it's rather returning a `List<String>`. Forwarding these two flags will allow running some of our configurations using `dart compile wasm` as opposed to `pkg/dart2wasm/tool/compile_benchmark` (though the former is still slower than the ladder). Though since `dart compile wasm` is still a bit slower then the shell script, we'll do that only for one configuration. Issue https://github.com/dart-lang/sdk/issues/54675 Change-Id: I74e9edb2f635f48faade8d843857be2aa7c6066f Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/347903 Reviewed-by: Slava Egorov <vegorov@google.com> Reviewed-by: Michael Thomsen <mit@google.com> Commit-Queue: Martin Kustermann <kustermann@google.com>
Dart is:
Approachable: Develop with a strongly typed programming language that is consistent, concise, and offers modern language features like null safety and patterns.
Portable: Compile to ARM, x64, or RISC-V machine code for mobile, desktop, and backend. Compile to JavaScript or WebAssembly for the web.
Productive: Make changes iteratively: use hot reload to see the result instantly in your running app. Diagnose app issues using DevTools.
Dart's flexible compiler technology lets you run Dart code in different ways, depending on your target platform and goals:
Dart Native: For programs targeting devices (mobile, desktop, server, and more), Dart Native includes both a Dart VM with JIT (just-in-time) compilation and an AOT (ahead-of-time) compiler for producing machine code.
Dart Web: For programs targeting the web, Dart Web includes both a development time compiler (dartdevc) and a production time compiler (dart2js).
Dart is free and open source.
See LICENSE and PATENT_GRANT.
Visit dart.dev to learn more about the language, tools, and to find codelabs.
Browse pub.dev for more packages and libraries contributed by the community and the Dart team.
Our API reference documentation is published at api.dart.dev, based on the stable release. (We also publish docs from our beta and dev channels, as well as from the primary development branch).
If you want to build Dart yourself, here is a guide to getting the source, preparing your machine to build the SDK, and building.
There are more documents on our wiki.
The easiest way to contribute to Dart is to file issues.
You can also contribute patches, as described in Contributing.