aboutsummaryrefslogtreecommitdiff
path: root/build/diagnostics.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build/diagnostics.cxx')
-rw-r--r--build/diagnostics.cxx5
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.