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

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

Issue 2730743002: Implement deps files in compile_platform.dart. (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/kernel/kernel_target.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/compile_platform.dart
diff --git a/pkg/front_end/lib/src/fasta/compile_platform.dart b/pkg/front_end/lib/src/fasta/compile_platform.dart
index a8a7d9687b1d3859c537f78aff4935f6746dc484..879d08dcf29f9155e018da08f1d7d83c408c1356 100644
--- a/pkg/front_end/lib/src/fasta/compile_platform.dart
+++ b/pkg/front_end/lib/src/fasta/compile_platform.dart
@@ -46,6 +46,7 @@ Future mainEntryPoint(List<String> arguments) async {
Future compilePlatform(CompilerContext c, Ticker ticker) async {
ticker.isVerbose = c.options.verbose;
Uri output = Uri.base.resolveUri(new Uri.file(c.options.arguments[1]));
+ Uri deps = Uri.base.resolveUri(new Uri.file("${c.options.arguments[1]}.d"));
Uri patchedSdk = Uri.base.resolveUri(new Uri.file(c.options.arguments[0]));
ticker.logMs("Parsed arguments");
if (ticker.isVerbose) {
@@ -65,7 +66,6 @@ Future compilePlatform(CompilerContext c, Ticker ticker) async {
await kernelTarget.writeOutline(output);
if (exitCode != 0) return null;
- await kernelTarget.writeProgram(output);
if (c.options.dumpIr) {
kernelTarget.dumpIr();
}
@@ -81,4 +81,7 @@ Future compilePlatform(CompilerContext c, Ticker ticker) async {
}
}
}
+ if (exitCode != 0) return null;
+ await kernelTarget.writeProgram(output);
+ await kernelTarget.writeDepsFile(output, deps);
}
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/kernel/kernel_target.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698