Commit c2e978f04f

Andrew Kelley <andrew@ziglang.org>
2024-03-07 06:51:38
build: spend a lot less time generating std docs
1 parent 8b70e4f
Changed files (1)
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(),