From ab4421747146aa7995f0cfb1a639c9121c82c915 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 8 Jan 2015 13:27:15 +0200 Subject: Implement tracing support Also use to-relative path translation in diagnostics. --- build/diagnostics.cxx | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 build/diagnostics.cxx (limited to 'build/diagnostics.cxx') diff --git a/build/diagnostics.cxx b/build/diagnostics.cxx new file mode 100644 index 0000000..f213707 --- /dev/null +++ b/build/diagnostics.cxx @@ -0,0 +1,20 @@ +// file : build/diagnostics.cxx -*- C++ -*- +// copyright : Copyright (c) 2014-2015 Code Synthesis Tools CC +// license : MIT; see accompanying LICENSE file + +#include + +#include + +using namespace std; + +namespace build +{ + void + print_process (const char* const* args) + { + for (const char* const* p (args); *p != nullptr; p++) + cerr << (p != args ? " " : "") << *p; + cerr << endl; + } +} -- cgit v1.1