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

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

Issue 2924833002: Pass a Target instance to DillTarget instead of its name (Closed)
Patch Set: Created 3 years, 6 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/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 a9863e198e78ac2c0692872e05bfc80bb49221b6..632248b49a0d402d1f64770f41a33cb865e95694 100644
--- a/pkg/front_end/lib/src/fasta/compile_platform.dart
+++ b/pkg/front_end/lib/src/fasta/compile_platform.dart
@@ -24,7 +24,7 @@ import 'ticker.dart' show Ticker;
import 'translate_uri.dart' show TranslateUri;
-import 'package:kernel/target/targets.dart' show TargetFlags;
+import 'package:kernel/target/targets.dart' show getTarget, TargetFlags;
const int iterations = const int.fromEnvironment("iterations", defaultValue: 1);
@@ -74,8 +74,10 @@ Future compilePlatformInternal(CompilerContext c, Ticker ticker, Uri patchedSdk,
ticker.logMs("Read packages file");
DillTarget dillTarget = new DillTarget(
- ticker, uriTranslator, c.options.target,
- flags: new TargetFlags(strongMode: c.options.strongMode));
+ ticker,
+ uriTranslator,
+ getTarget(
+ c.options.target, new TargetFlags(strongMode: c.options.strongMode)));
KernelTarget kernelTarget =
new KernelTarget(c.fileSystem, dillTarget, uriTranslator, c.uriToSource);

Powered by Google App Engine
This is Rietveld 408576698