From 05a15ed660f8b43c85242fed1a863853e8c749b3 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Mon, 6 Jan 2025 17:48:19 +0100 Subject: Reduce chance of lines being cut and mixed up when printing from the task threads. --- src/task_so.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/task_so.cc') diff --git a/src/task_so.cc b/src/task_so.cc index 75b5f3c..eecd7aa 100644 --- a/src/task_so.cc +++ b/src/task_so.cc @@ -110,7 +110,8 @@ int TaskSO::runInner() if(settings.verbose == 0) { - std::cout << "LD => " << targetFile().string() << std::endl; + std::string output = "LD => " + targetFile().string() + '\n'; + std::cout << output << std::flush; } auto tool = compiler(); -- cgit v1.2.3