summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lld/COFF/Error.cpp1
-rw-r--r--lld/ELF/Error.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/lld/COFF/Error.cpp b/lld/COFF/Error.cpp
index b2c7c89bd36..166b1971e77 100644
--- a/lld/COFF/Error.cpp
+++ b/lld/COFF/Error.cpp
@@ -59,6 +59,7 @@ void log(const Twine &Msg) {
if (Config->Verbose) {
std::lock_guard<std::mutex> Lock(Mu);
outs() << Argv0 << ": " << Msg << "\n";
+ outs().flush();
}
}
diff --git a/lld/ELF/Error.cpp b/lld/ELF/Error.cpp
index 2c61b58dfed..7a58668bdcc 100644
--- a/lld/ELF/Error.cpp
+++ b/lld/ELF/Error.cpp
@@ -60,6 +60,7 @@ void elf::log(const Twine &Msg) {
if (Config->Verbose) {
std::lock_guard<std::mutex> Lock(Mu);
outs() << Argv0 << ": " << Msg << "\n";
+ outs().flush();
}
}
OpenPOWER on IntegriCloud