Flush changes into .ninja_log right away.

This commit is contained in:
Pawel Pluciennik 2017-11-24 11:26:23 +01:00
parent e234a7bdb6
commit c1c8bbaa5f

View File

@ -167,6 +167,9 @@ bool BuildLog::RecordCommand(Edge* edge, int start_time, int end_time,
if (log_file_) {
if (!WriteEntry(log_file_, *log_entry))
return false;
if (fflush(log_file_) != 0) {
return false;
}
}
}
return true;