mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 23:52:31 +00:00
docgen: test blocks support linking libc
This commit is contained in:
parent
c0b937ba12
commit
56b1818beb
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user