| Index: pkg/compiler/lib/src/apiimpl.dart
|
| diff --git a/pkg/compiler/lib/src/apiimpl.dart b/pkg/compiler/lib/src/apiimpl.dart
|
| index 7449c7a773c579cf3b592dc1f8b97dad95cd63fd..bdfec9061b0ef95e75af8ea17d7b8906d4b3115a 100644
|
| --- a/pkg/compiler/lib/src/apiimpl.dart
|
| +++ b/pkg/compiler/lib/src/apiimpl.dart
|
| @@ -82,6 +82,7 @@ class Compiler extends leg.Compiler {
|
| forceIncrementalSupport ||
|
| hasOption(options, '--incremental-support'),
|
| suppressWarnings: hasOption(options, '--suppress-warnings'),
|
| + fatalWarnings: hasOption(options, '--fatal-warnings'),
|
| enableExperimentalMirrors:
|
| hasOption(options, '--enable-experimental-mirrors'),
|
| generateCodeWithCompileTimeErrors:
|
| @@ -354,7 +355,8 @@ class Compiler extends leg.Compiler {
|
| api.Diagnostic kind) {
|
| leg.SourceSpan span = spanFromSpannable(node);
|
| if (identical(kind, api.Diagnostic.ERROR)
|
| - || identical(kind, api.Diagnostic.CRASH)) {
|
| + || identical(kind, api.Diagnostic.CRASH)
|
| + || (fatalWarnings && identical(kind, api.Diagnostic.WARNING))) {
|
| compilationFailed = true;
|
| }
|
| // [:span.uri:] might be [:null:] in case of a [Script] with no [uri]. For
|
|
|