summaryrefslogtreecommitdiff
path: root/src/line_printer.cc
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2022-06-07 09:35:44 +0300
committerOrgad Shaneh <orgad.shaneh@audiocodes.com>2022-06-07 09:35:44 +0300
commit23e6bf5c41e17e20872e8c7b2a7cfb86a0db5e1a (patch)
tree80d1be6b074ed04618173065a644f9667629fddd /src/line_printer.cc
parent55f54511d35716c43637dee2bcb5fbc7839f967b (diff)
downloadninja-23e6bf5c41e17e20872e8c7b2a7cfb86a0db5e1a.tar.gz
Flush output after each line
The output is not flushed automatically after \n, at least on Windows 10.
Diffstat (limited to 'src/line_printer.cc')
-rw-r--r--src/line_printer.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/line_printer.cc b/src/line_printer.cc
index a3d0528..fa97447 100644
--- a/src/line_printer.cc
+++ b/src/line_printer.cc
@@ -118,6 +118,7 @@ void LinePrinter::Print(string to_print, LineType type) {
have_blank_line_ = false;
} else {
printf("%s\n", to_print.c_str());
+ fflush(stdout);
}
}