From 56b1818beb0e6acce60ff399556af257acc77983 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Tue, 24 Sep 2019 11:41:19 -0400 Subject: [PATCH] docgen: test blocks support linking libc --- doc/docgen.zig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/docgen.zig b/doc/docgen.zig index 4a51e1726a9ab60cb5d5f508d42af52d203d6bb2..267c99c32177d54d4b8cd77379cf625b6b6bf04b 100644 --- a/doc/docgen.zig +++ b/doc/docgen.zig @@ -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); -- 2.54.0