diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2025-01-06 17:48:19 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2025-01-06 17:48:19 +0100 |
commit | 05a15ed660f8b43c85242fed1a863853e8c749b3 (patch) | |
tree | 2aaec389e043cf20637ce8a9d7d3ac394dae836e /src/task_fn.cc | |
parent | 78c5477b3989d67169de2d05665adfb801caab23 (diff) |
Reduce chance of lines being cut and mixed up when printing from the task threads.
Diffstat (limited to 'src/task_fn.cc')
-rw-r--r-- | src/task_fn.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/task_fn.cc b/src/task_fn.cc index 2fa0ad6..873dc44 100644 --- a/src/task_fn.cc +++ b/src/task_fn.cc @@ -68,9 +68,10 @@ int TaskFn::runInner() if(settings.verbose >= 0) { - std::cout << "Fn" << " " << - sourceFile.lexically_normal().string() << " => " << - targetFile().lexically_normal().string() << std::endl; + std::string output = "Fn " + + sourceFile.lexically_normal().string() + " => " + + targetFile().lexically_normal().string() + '\n'; + std::cout << output << std::flush; } return config.function(sourceFile.string(), |