| Index: pkg/front_end/lib/src/fasta/compiler_command_line.dart
|
| diff --git a/pkg/front_end/lib/src/fasta/compiler_command_line.dart b/pkg/front_end/lib/src/fasta/compiler_command_line.dart
|
| index 1ad8241670952c270d06536c1db4dab414fd4350..9704c873fed7bc131562fa4b8f6035b90e7fd4c6 100644
|
| --- a/pkg/front_end/lib/src/fasta/compiler_command_line.dart
|
| +++ b/pkg/front_end/lib/src/fasta/compiler_command_line.dart
|
| @@ -15,11 +15,12 @@ import 'compiler_context.dart' show
|
| CompilerContext;
|
|
|
| const Map<String, dynamic> optionSpecification = const <String, dynamic>{
|
| - "-o": Uri,
|
| + "--compile-sdk": Uri,
|
| + "--fatal": ",",
|
| "--output": Uri,
|
| - "--platform": Uri,
|
| "--packages": Uri,
|
| - "--fatal": ",",
|
| + "--platform": Uri,
|
| + "-o": Uri,
|
| };
|
|
|
| class CompilerCommandLine extends CommandLine {
|
| @@ -70,6 +71,8 @@ class CompilerCommandLine extends CommandLine {
|
| : options["--platform"] ?? Uri.base.resolve("platform.dill");
|
| }
|
|
|
| + Uri get sdk => options["--compile-sdk"];
|
| +
|
| Set<String> get fatal {
|
| return new Set<String>.from(options["--fatal"] ?? <String>[]);
|
| }
|
| @@ -162,7 +165,7 @@ Supported options:
|
| --dump-ir
|
| Print compiled libraries in Kernel source notation.
|
|
|
| - --compile-sdk
|
| + --compile-sdk=<patched_sdk>
|
| Compile the SDK from scratch instead of reading it from 'platform.dill'.
|
|
|
| --fatal=errors
|
|
|