Index: pkg/front_end/lib/src/kernel_generator_impl.dart |
diff --git a/pkg/front_end/lib/src/kernel_generator_impl.dart b/pkg/front_end/lib/src/kernel_generator_impl.dart |
index 8dd871af4bbda05d5e6ae60740b3f39ff1b49cd3..393aa00c616dfcc2a19c90fb1b1541ca42e3297b 100644 |
--- a/pkg/front_end/lib/src/kernel_generator_impl.dart |
+++ b/pkg/front_end/lib/src/kernel_generator_impl.dart |
@@ -75,7 +75,10 @@ Future<CompilerResult> generateKernelInternal( |
} |
// All summaries are considered external and shouldn't include source-info. |
- dillTarget.loader.libraries.forEach((lib) => lib.isExternal = true); |
+ dillTarget.loader.libraries.forEach((lib) { |
+ lib.isExternal = true; |
+ lib.dependencies.clear(); |
+ }); |
// Linked dependencies are meant to be part of the program so they are not |
// marked external. |