docgen: slightly cleaner display of libc cli args

This commit is contained in:
Andrew Kelley 2019-09-24 11:36:59 -04:00
parent 5fb7af26ab
commit c0b937ba12
No known key found for this signature in database
GPG Key ID: 7C5F548F728501A9

View File

@ -1086,9 +1086,8 @@ fn genHtml(allocator: *mem.Allocator, tokenizer: *Tokenizer, toc: *Toc, out: var
try out.print(" --object {}", name_with_ext);
}
if (code.link_libc) {
try build_args.append("--library");
try build_args.append("c");
try out.print(" --library c");
try build_args.append("-lc");
try out.print(" -lc");
}
if (code.target_str) |triple| {
try build_args.appendSlice([_][]const u8{ "-target", triple });