From c2e978f04f489e8b49808e5fc3d5396782918370 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Wed, 6 Mar 2024 22:51:38 -0700 Subject: [PATCH] build: spend a lot less time generating std docs --- build.zig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build.zig b/build.zig index 2e3f8a9802..1380ff7c36 100644 --- a/build.zig +++ b/build.zig @@ -55,10 +55,12 @@ pub fn build(b: *std.Build) !void { b.getInstallStep().dependOn(&install_langref.step); } - const autodoc_test = b.addTest(.{ + const autodoc_test = b.addObject(.{ + .name = "std", .root_source_file = .{ .path = "lib/std/std.zig" }, .target = target, .zig_lib_dir = .{ .path = "lib" }, + .optimize = .Debug, }); const install_std_docs = b.addInstallDirectory(.{ .source_dir = autodoc_test.getEmittedDocs(),