-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[dart2js] Update Dart2jsStage definitions and CLI surface area.
Today to invoke Dart2js with sequential actions there are 2 ways to specify the stage from the command line. By specifying a `write-<stage-data>=<some-uri>` or by using `stage=<some-stage>`. Internally we use the former via a similar (but separate) concept to Dart2jsStage. The goal here is to consolidate all these different entry points. The new CLI works as follows: - To run the compiler in full you can: - Pass no additional flags as before - Specify 'stage=all' - 'dump-info-all' runs the full compilation from scratch but includes dump info. - To run the compiler in sequential mode you specify a stage: - Each stage has its own name passed to the '--stage' flag. - All the intermediate data URIs can be passed to every stage and only the relevant ones are used for any given stage. If no URI is passed then a default URI is used. - 'dump-info' is now its own stage. Partial dump info data is always included in the emit-js and codegen-emit-js steps. - 'cfe-only' flag is maintained for compatibility with Flutter CLI. Change-Id: I67965d7708688a85c866d8abef3716bee23a083f Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/358740 Reviewed-by: Sigmund Cherem <[email protected]> Commit-Queue: Nate Biggs <[email protected]>
- Loading branch information
Showing
20 changed files
with
410 additions
and
981 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.