From 24f74ea70a19ccd7bcb489853fc73a972ab8638f Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 27 Jul 2017 02:30:09 +0300 Subject: Fix to print to diagnostics stream instead of std::cerr --- build2/cc/link.cxx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'build2/cc/link.cxx') diff --git a/build2/cc/link.cxx b/build2/cc/link.cxx index a91fa1e..b113adb 100644 --- a/build2/cc/link.cxx +++ b/build2/cc/link.cxx @@ -6,7 +6,6 @@ #include #include // exit() -#include // cerr #include #include // file_exists() @@ -1713,11 +1712,11 @@ namespace build2 // If anything remains in the stream, send it all to stderr. Note // that the eof check is important: if the stream is at eof, this - // and all subsequent writes to cerr will fail (and you won't see - // a thing). + // and all subsequent writes to the diagnostics stream will fail + // (and you won't see a thing). // if (is.peek () != ifdstream::traits_type::eof ()) - cerr << is.rdbuf (); + diag_stream_lock () << is.rdbuf (); is.close (); } -- cgit v1.1