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

Unified Diff: pkg/front_end/lib/src/fasta/outline.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
Index: pkg/front_end/lib/src/fasta/outline.dart
diff --git a/pkg/front_end/lib/src/fasta/outline.dart b/pkg/front_end/lib/src/fasta/outline.dart
index c2a911a79ea55a49e9bb39bae21f7198f87fd46c..e0811d5445267d78a6191eecd2a1bd4a3d0b2ece 100644
--- a/pkg/front_end/lib/src/fasta/outline.dart
+++ b/pkg/front_end/lib/src/fasta/outline.dart
@@ -38,11 +38,6 @@ import 'translate_uri.dart' show
import 'ast_kind.dart' show
AstKind;
-// TODO(ahe): Remove this import. Instead make the SDK available as resource in
-// the executable, or something similar.
-import 'testing/kernel_chain.dart' show
- computePatchedSdk;
-
Future<KernelTarget> outline(List<String> arguments) async {
try {
return await CompilerCommandLine.withGlobalOptions(
@@ -96,9 +91,7 @@ Future<Uri> kompile(List<String> arguments) async {
Future<KernelTarget> doOutline(CompilerContext c, Ticker ticker,
[Uri output]) async {
- Uri sdk = await computePatchedSdk();
- ticker.logMs("Found patched SDK");
- TranslateUri uriTranslator = await TranslateUri.parse(sdk);
+ TranslateUri uriTranslator = await TranslateUri.parse(c.options.sdk);
ticker.logMs("Read packages file");
DillTarget dillTarget = new DillTarget(ticker, uriTranslator);
KernelTarget kernelTarget =
« no previous file with comments | « pkg/front_end/lib/src/fasta/compiler_command_line.dart ('k') | pkg/front_end/lib/src/fasta/translate_uri.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698