flush deferred warnings before writing to stdout

This commit is contained in:
Evan Wallace
2021-03-04 20:58:26 -08:00
parent ea3242a208
commit 15b36c5974
2 changed files with 44 additions and 18 deletions

View File

@@ -774,6 +774,9 @@ func rebuildImpl(
// Stop now if there were errors
if !log.HasErrors() {
// Flush any deferred warnings now
log.AlmostDone()
if buildOpts.Write {
// Special-case writing to stdout
if options.WriteToStdout {