diff options
author | Dāvis Mosāns <davispuh@gmail.com> | 2016-10-11 19:46:10 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-10-13 13:24:45 (GMT) |
commit | 39b08858f676f0251898ffc7601ad216bb87ae21 (patch) | |
tree | 81552f2db890715969f04056b33043eb65981806 /Source/cmSystemTools.cxx | |
parent | 2fb8e5b1c46ea586233b19e612ba174aa74d004c (diff) | |
download | CMake-39b08858f676f0251898ffc7601ad216bb87ae21.zip CMake-39b08858f676f0251898ffc7601ad216bb87ae21.tar.gz CMake-39b08858f676f0251898ffc7601ad216bb87ae21.tar.bz2 |
cmSystemTools: Flush output buffer for list_item_verbose
When `std::cout` and `FILE *stdout` are used at same time need to
explicitly flush otherwise they can be out of sync.
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r-- | Source/cmSystemTools.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index d800ef8..0a3a1ab 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -1499,6 +1499,7 @@ void list_item_verbose(FILE* out, struct archive_entry* entry) { fprintf(out, " -> %s", archive_entry_symlink(entry)); } + fflush(out); } long copy_data(struct archive* ar, struct archive* aw) |