mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[DiagnosticEngine] Mark module import diagnostic errors as 'fatal' errors, and supress subsequent diagnostics
to avoid a cascade of errors that drown out the original failure. Swift SVN r17141
This commit is contained in:
@@ -621,6 +621,10 @@ static bool ParseDiagnosticArgs(DiagnosticOptions &Opts, ArgList &Args,
|
||||
Opts.SkipDiagnosticPasses = true;
|
||||
}
|
||||
|
||||
if (Args.hasArg(OPT_show_diagnostics_after_fatal)) {
|
||||
Opts.ShowDiagnosticsAfterFatalError = true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user