Index: pkg/front_end/lib/src/incremental_kernel_generator_impl.dart |
diff --git a/pkg/front_end/lib/src/incremental_kernel_generator_impl.dart b/pkg/front_end/lib/src/incremental_kernel_generator_impl.dart |
index 578f9b1c6b7acb27e527ed4386f0c8c78ed7dc98..849b81af048a2951858acaff202290889f7270fd 100644 |
--- a/pkg/front_end/lib/src/incremental_kernel_generator_impl.dart |
+++ b/pkg/front_end/lib/src/incremental_kernel_generator_impl.dart |
@@ -20,6 +20,7 @@ import 'package:front_end/src/incremental/file_state.dart'; |
import 'package:kernel/binary/ast_from_binary.dart'; |
import 'package:kernel/binary/limited_ast_to_binary.dart'; |
import 'package:kernel/kernel.dart' hide Source; |
+import 'package:kernel/target/targets.dart' show TargetFlags; |
dynamic unimplemented() { |
// TODO(paulberry): get rid of this. |
@@ -100,8 +101,9 @@ class IncrementalKernelGeneratorImpl implements IncrementalKernelGenerator { |
}); |
CanonicalName nameRoot = new CanonicalName.root(); |
- DillTarget dillTarget = |
- new DillTarget(new Ticker(isVerbose: false), _uriTranslator, "vm"); |
+ DillTarget dillTarget = new DillTarget( |
+ new Ticker(isVerbose: false), _uriTranslator, "vm_fasta", |
+ flags: new TargetFlags(strongMode: _options.strongMode)); |
List<_LibraryCycleResult> results = []; |
await _logger.runAsync('Compute results for cycles', () async { |
@@ -204,8 +206,8 @@ class IncrementalKernelGeneratorImpl implements IncrementalKernelGenerator { |
} |
// Create KernelTarget and configure it for compiling the cycle URIs. |
- KernelTarget kernelTarget = new KernelTarget(_fsState.fileSystemView, |
- dillTarget, _uriTranslator, _options.strongMode); |
+ KernelTarget kernelTarget = |
+ new KernelTarget(_fsState.fileSystemView, dillTarget, _uriTranslator); |
for (FileState library in cycle.libraries) { |
kernelTarget.read(library.uri); |
} |