mirror of
https://github.com/reactos/ninja.git
synced 2025-02-20 03:30:55 +00:00
Merge pull request #1361 from ppluciennik/ppluciennik/flush_log
Flush changes into .ninja_log right away.
This commit is contained in:
commit
5d43e74571
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user