projects
/
platform
/
upstream
/
ninja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed53e89
)
windows: don't buffer stdout
author
Evan Martin
<martine@danga.com>
Fri, 2 Dec 2011 05:53:00 +0000
(21:53 -0800)
committer
Evan Martin
<martine@danga.com>
Fri, 2 Dec 2011 05:53:00 +0000
(21:53 -0800)
src/build.cc
patch
|
blob
|
history
diff --git
a/src/build.cc
b/src/build.cc
index
1686eed
..
ae6ebbb
100644
(file)
--- a/
src/build.cc
+++ b/
src/build.cc
@@
-70,6
+70,11
@@
BuildStatus::BuildStatus(const BuildConfig& config)
smart_terminal_ = isatty(1) && term && string(term) != "dumb";
#else
smart_terminal_ = false;
+ // Disable output buffer. It'd be nice to use line buffering but
+ // MSDN says: "For some systems, [_IOLBF] provides line
+ // buffering. However, for Win32, the behavior is the same as _IOFBF
+ // - Full Buffering."
+ setvbuf(stdout, NULL, _IONBF, 0);
#endif
// Don't do anything fancy in verbose mode.