diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-06-24 17:26:17 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-06-24 17:26:17 +0200 |
commit | f56b5a42b9aaaeb0c4e7dee894dea9686599b88c (patch) | |
tree | a4c042781770c4fd75fad031b686153bba1beadf /build/diagnostics.cxx | |
parent | e815af118562c68794efbd310c887acd8eae800c (diff) |
Implement proper target type detection in dependency injection
Diffstat (limited to 'build/diagnostics.cxx')
-rw-r--r-- | build/diagnostics.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
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. |