Output all diagnostics from tint executable
Otherwise warnings are not emitted unless there is also an error. Change-Id: If417f75fbdd246b1f792a0f63b83274c8f2272e3 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/47481 Auto-Submit: James Price <jrprice@google.com> Reviewed-by: Ben Clayton <bclayton@google.com> Commit-Queue: James Price <jrprice@google.com>
This commit is contained in:
parent
3ee8c37cb6
commit
c8ffbe43a7
|
@ -659,8 +659,10 @@ int main(int argc, const char** argv) {
|
||||||
<< options.input_filename << std::endl;
|
<< options.input_filename << std::endl;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
if (!program->IsValid()) {
|
if (program->Diagnostics().count() > 0) {
|
||||||
diag_formatter.format(program->Diagnostics(), diag_printer.get());
|
diag_formatter.format(program->Diagnostics(), diag_printer.get());
|
||||||
|
}
|
||||||
|
if (!program->IsValid()) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue