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

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

Issue 2710943006: Make patch_sdk step invoke fasta's compile_platform to generate patched_sdk/platform.dill. (Closed)
Patch Set: Add kernel and front_end to dependencies 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
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 490c5002e9ad6e279e16028c8281a69feeaeb2e2..8a328d6d26670d4c30c00d241e8b35e2a7005a56 100644
--- a/pkg/front_end/lib/src/fasta/compiler_command_line.dart
+++ b/pkg/front_end/lib/src/fasta/compiler_command_line.dart
@@ -51,9 +51,6 @@ class CompilerCommandLine extends CommandLine {
if (options.containsKey("-o") && options.containsKey("--output")) {
return argumentError(usage, "Can't specify both '-o' and '--output'.");
}
- if (options.containsKey("--packages")) {
- return argumentError(usage, "Option '--packages' isn't supported yet.");
- }
if (programName == "compile_platform" && arguments.length != 2) {
return argumentError(usage, "Expected two arguments.");
} else if (arguments.isEmpty) {
@@ -73,6 +70,8 @@ class CompilerCommandLine extends CommandLine {
: options["--platform"] ?? Uri.base.resolve("platform.dill");
}
+ Uri get packages => options["--packages"] ?? Uri.base.resolve(".packages");
+
Uri get sdk => options["--compile-sdk"];
Set<String> get fatal {

Powered by Google App Engine
This is Rietveld 408576698