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

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

Issue 2710693002: Update compile_platform to not use dartk. (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 | « pkg/front_end/lib/src/fasta/compile_platform_dartk.dart ('k') | no next file » | 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 9704c873fed7bc131562fa4b8f6035b90e7fd4c6..490c5002e9ad6e279e16028c8281a69feeaeb2e2 100644
--- a/pkg/front_end/lib/src/fasta/compiler_command_line.dart
+++ b/pkg/front_end/lib/src/fasta/compiler_command_line.dart
@@ -54,7 +54,9 @@ class CompilerCommandLine extends CommandLine {
if (options.containsKey("--packages")) {
return argumentError(usage, "Option '--packages' isn't supported yet.");
}
- if (arguments.isEmpty) {
+ if (programName == "compile_platform" && arguments.length != 2) {
+ return argumentError(usage, "Expected two arguments.");
+ } else if (arguments.isEmpty) {
return argumentError(usage, "No Dart file specified.");
}
}
@@ -116,6 +118,11 @@ String computeUsage(String programName, bool verbose) {
case "run":
summary = "Runs a Dart program.";
break;
+
+ case "compile_platform":
+ summary =
+ "Compiles Dart SDK platform to the Dill/Kernel IR format.";
+ basicUsage = "Usage: $programName [options] patched_sdk output\n";
}
StringBuffer sb = new StringBuffer(basicUsage);
if (summary != null) {
« no previous file with comments | « pkg/front_end/lib/src/fasta/compile_platform_dartk.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698