Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(367)

Unified Diff: pkg/front_end/lib/src/fasta/compiler_command_line.dart

Issue 2710643002: Specify patched_sdk location with --compile-sdk. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/outline.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/outline.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698