| Index: pkg/dart2js_incremental/lib/caching_compiler.dart
|
| diff --git a/pkg/dart2js_incremental/lib/caching_compiler.dart b/pkg/dart2js_incremental/lib/caching_compiler.dart
|
| index e2307dcdd4ba77bfda25a3d3888244e7f6453a4c..4185df1c46b8be92bb1e72bc2a37a9d08b97cb64 100644
|
| --- a/pkg/dart2js_incremental/lib/caching_compiler.dart
|
| +++ b/pkg/dart2js_incremental/lib/caching_compiler.dart
|
| @@ -76,13 +76,16 @@ Future<CompilerImpl> reuseCompiler(
|
| ..needsStructuredMemberInfo = true;
|
|
|
| Uri core = Uri.parse("dart:core");
|
| - return compiler.libraryLoader.loadLibrary(core).then((_) {
|
| - // Likewise, always be prepared for runtimeType support.
|
| - // TODO(johnniwinther): Add global switch to force RTI.
|
| - compiler.enabledRuntimeType = true;
|
| - backend.registerRuntimeType(
|
| - compiler.enqueuer.resolution, compiler.globalDependencies);
|
| - return compiler;
|
| +
|
| + return compiler.setupSdk().then((_) {
|
| + return compiler.libraryLoader.loadLibrary(core).then((_) {
|
| + // Likewise, always be prepared for runtimeType support.
|
| + // TODO(johnniwinther): Add global switch to force RTI.
|
| + compiler.enabledRuntimeType = true;
|
| + backend.registerRuntimeType(
|
| + compiler.enqueuer.resolution, compiler.globalDependencies);
|
| + return compiler;
|
| + });
|
| });
|
| } else {
|
| for (final task in compiler.tasks) {
|
|
|