From f56b5a42b9aaaeb0c4e7dee894dea9686599b88c Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 24 Jun 2015 17:26:17 +0200 Subject: Implement proper target type detection in dependency injection --- build/diagnostics.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'build/diagnostics.cxx') diff --git a/build/diagnostics.cxx b/build/diagnostics.cxx index d820145..f6d81bf 100644 --- a/build/diagnostics.cxx +++ b/build/diagnostics.cxx @@ -162,7 +162,10 @@ namespace build diag_record r (text); for (const char* const* p (args); *p != nullptr; p++) - r << (p != args ? " " : "") << *p; + r << (p != args ? " " : "") + << (**p == '\0' ? "\"" : "") // Quote empty arguments. + << *p + << (**p == '\0' ? "\"" : ""); } // Trace verbosity level. -- cgit v1.1