Index: pkg/compiler/lib/src/kernel/task.dart |
diff --git a/pkg/compiler/lib/src/kernel/task.dart b/pkg/compiler/lib/src/kernel/task.dart |
index 81637a231bf6d201a54ecc5e7dd3391bd65332b8..63532fc73817f151223b772ddb66e4500ceaabc2 100644 |
--- a/pkg/compiler/lib/src/kernel/task.dart |
+++ b/pkg/compiler/lib/src/kernel/task.dart |
@@ -29,7 +29,8 @@ class KernelTask extends CompilerTask { |
/// |
/// May enqueue more elements to the resolution queue. |
void buildKernelIr() => measure(() { |
- program = buildProgram(_compiler.mainApp); |
+ program = buildProgram( |
+ _compiler.frontendStrategy.elementEnvironment.mainLibrary); |
}); |
/// Builds the kernel IR program for the main function exported from |