From 0b0cb4afa08210b572a9be6cadcb6397935b99d1 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Mon, 9 Jan 2023 17:31:21 +0100 Subject: Make sure to flush compilation status lines to the console. --- src/execute.cc | 2 +- src/task_ar.cc | 2 +- src/task_cc.cc | 2 +- src/task_fn.cc | 2 +- src/task_ld.cc | 2 +- src/task_so.cc | 2 +- src/unittest.cc | 6 +++--- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/execute.cc b/src/execute.cc index 610ccdd..20a4a02 100644 --- a/src/execute.cc +++ b/src/execute.cc @@ -61,7 +61,7 @@ int execute(const std::string& command, cmd += arg; } - std::cout << cmd << "\n"; + std::cout << cmd << std::endl; } #if 1 diff --git a/src/task_ar.cc b/src/task_ar.cc index 1e6b278..39a8c6d 100644 --- a/src/task_ar.cc +++ b/src/task_ar.cc @@ -92,7 +92,7 @@ int TaskAR::runInner() if(settings.verbose == 0) { - std::cout << "AR => " << targetFile().string() << "\n"; + std::cout << "AR => " << targetFile().string() << std::endl; } std::string tool; diff --git a/src/task_cc.cc b/src/task_cc.cc index d1b89ce..29aeefb 100644 --- a/src/task_cc.cc +++ b/src/task_cc.cc @@ -182,7 +182,7 @@ int TaskCC::runInner() } std::cout << sourceFile.lexically_normal().string() << " => " << - targetFile().lexically_normal().string() << "\n"; + targetFile().lexically_normal().string() << std::endl; } return execute(compiler(), args, settings.verbose > 0); diff --git a/src/task_fn.cc b/src/task_fn.cc index 4ff692d..b8932de 100644 --- a/src/task_fn.cc +++ b/src/task_fn.cc @@ -70,7 +70,7 @@ int TaskFn::runInner() { std::cout << "Fn" << " " << sourceFile.lexically_normal().string() << " => " << - targetFile().lexically_normal().string() << "\n"; + targetFile().lexically_normal().string() << std::endl; } return config.function(sourceFile.string(), diff --git a/src/task_ld.cc b/src/task_ld.cc index b5b762f..5c27d3f 100644 --- a/src/task_ld.cc +++ b/src/task_ld.cc @@ -111,7 +111,7 @@ int TaskLD::runInner() if(settings.verbose == 0) { - std::cout << "LD => " << targetFile().string() << "\n"; + std::cout << "LD => " << targetFile().string() << std::endl; } auto tool = compiler(); diff --git a/src/task_so.cc b/src/task_so.cc index 4779321..ed4bd18 100644 --- a/src/task_so.cc +++ b/src/task_so.cc @@ -102,7 +102,7 @@ int TaskSO::runInner() if(settings.verbose == 0) { - std::cout << "LD => " << targetFile().string() << "\n"; + std::cout << "LD => " << targetFile().string() << std::endl; } auto tool = compiler(); diff --git a/src/unittest.cc b/src/unittest.cc index f18de47..942be3e 100644 --- a/src/unittest.cc +++ b/src/unittest.cc @@ -12,7 +12,7 @@ int runUnitTests(std::set>& tasks, const Settings& settings) { bool ok{true}; - std::cout << "Running unit-tests:\n"; + std::cout << "Running unit-tests:" << std::endl; // Run unit-tests for(const auto& task : tasks) { @@ -28,11 +28,11 @@ int runUnitTests(std::set>& tasks, ok &= ret == 0; if(ret == 0) { - std::cout << " OK\n"; + std::cout << " OK" << std::endl; } else { - std::cout << " FAILED\n"; + std::cout << " FAILED" << std::endl; } } } -- cgit v1.2.3