aboutsummaryrefslogtreecommitdiff
path: root/build2/dump.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-03-24 14:47:57 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-03-24 20:29:29 +0300
commit8ad62d6b00adf657ef7b468778a0964007aca383 (patch)
tree4f43e7bbc4af7660bad82fdca27a0df1be903ca5 /build2/dump.cxx
parent1271630db189e60610eeae2c2a7dc72edd91afde (diff)
Fix diagnostics interleaving characters
Diffstat (limited to 'build2/dump.cxx')
-rw-r--r--build2/dump.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/build2/dump.cxx b/build2/dump.cxx
index 7055a78..6d055ae 100644
--- a/build2/dump.cxx
+++ b/build2/dump.cxx
@@ -345,6 +345,9 @@ namespace build2
auto i (scopes.cbegin ());
assert (&i->second == global_scope);
+ // We don't lock diag_stream here as dump() is supposed to be called from
+ // the main thread prior to any other threads being spawned.
+ //
string ind;
ostream& os (*diag_stream);
dump_scope (os, ind, i);