docgen: test blocks support linking libc

This commit is contained in:
Andrew Kelley 2019-09-24 11:41:19 -04:00
parent c0b937ba12
commit 56b1818beb
No known key found for this signature in database
GPG Key ID: 7C5F548F728501A9

View File

@ -1198,6 +1198,10 @@ fn genHtml(allocator: *mem.Allocator, tokenizer: *Tokenizer, toc: *Toc, out: var
try out.print(" --release-small");
},
}
if (code.link_libc) {
try test_args.append("-lc");
try out.print(" -lc");
}
if (code.target_str) |triple| {
try test_args.appendSlice([_][]const u8{ "-target", triple });
try out.print(" -target {}", triple);