| Index: pkg/compiler/lib/src/compiler.dart
|
| diff --git a/pkg/compiler/lib/src/compiler.dart b/pkg/compiler/lib/src/compiler.dart
|
| index 8d55e79a1ba63dd8c4aaba154d7fd1ca24efa539..40af37b548097a2c699fb43b7455b8a0c7c88ab3 100644
|
| --- a/pkg/compiler/lib/src/compiler.dart
|
| +++ b/pkg/compiler/lib/src/compiler.dart
|
| @@ -578,7 +578,9 @@ abstract class Compiler {
|
| _reporter.reportSuppressedMessagesSummary();
|
|
|
| if (compilationFailed) {
|
| - if (!options.generateCodeWithCompileTimeErrors) return;
|
| + if (!options.generateCodeWithCompileTimeErrors || options.useKernel) {
|
| + return;
|
| + }
|
| if (mainFunction == null) return;
|
| if (!backend
|
| .enableCodegenWithErrorsIfSupported(NO_LOCATION_SPANNABLE)) {
|
|
|