dart-sdk/pkg/dart2native
Johnni Winther cad04f8604 [cfe,dart2js,dartdev] Show null safety mode for dart compile
This adds a new messages kind 'info' to the CFE for showing general
information during compilation. A 'configuration' options is added
to `CompilerOptions` for telling the CFE how it is run.

The configuration 'compile' is added for when the CFE is invoked to
produces an "executable" as when running `dart compile`. When
configuration is set, the CFE emits an info message about the
null safety compilation mode.

Support for `dart compile exe` and `dart compile js` is added in this
CL. Support for `dart compile kernel|app-jit|aot` is not included.

In response to https://github.com/dart-lang/sdk/issues/44234

TEST=pkg/dartdev/test/commands/compile_test.dart

Change-Id: I08f51e2a3f5ad4841c4d703bcd266b7afb63c7c6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/178982
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Jens Johansen <jensj@google.com>
2021-01-15 11:28:13 +00:00
..
bin [SDK] Adds --enable-experiment to dart2native. 2020-08-11 11:22:19 +00:00
lib [cfe,dart2js,dartdev] Show null safety mode for dart compile 2021-01-15 11:28:13 +00:00
analysis_options.yaml Add a new dartdev compile verb. 2020-06-23 08:33:17 +00:00
pubspec.yaml update pubspec.yaml files to reflect actual package usage 2020-08-20 18:08:49 +00:00