Commit 00efbfa054

Andrew Kelley <superjoe30@gmail.com>
2017-04-04 12:15:23
link: correctly print debug linker invocation
1 parent 8db9d04
Changed files (1)
src/link.cpp
@@ -815,9 +815,9 @@ void codegen_link(CodeGen *g, const char *out_file) {
 
 
     if (g->verbose) {
-        fprintf(stderr, "link");
         for (size_t i = 0; i < lj.args.length; i += 1) {
-            fprintf(stderr, " %s", lj.args.at(i));
+            const char *space = (i != 0) ? " " : "";
+            fprintf(stderr, "%s%s", space, lj.args.at(i));
         }
         fprintf(stderr, "\n");
     }