| ... | @@ -55,10 +55,12 @@ pub fn build(b: *std.Build) !void { | ... | @@ -55,10 +55,12 @@ pub fn build(b: *std.Build) !void { |
| 55 | b.getInstallStep().dependOn(&install_langref.step); | 55 | b.getInstallStep().dependOn(&install_langref.step); |
| 56 | } | 56 | } |
| 57 | | 57 | |
| 58 | const autodoc_test = b.addTest(.{ | 58 | const autodoc_test = b.addObject(.{ |
| | 59 | .name = "std", |
| 59 | .root_source_file = .{ .path = "lib/std/std.zig" }, | 60 | .root_source_file = .{ .path = "lib/std/std.zig" }, |
| 60 | .target = target, | 61 | .target = target, |
| 61 | .zig_lib_dir = .{ .path = "lib" }, | 62 | .zig_lib_dir = .{ .path = "lib" }, |
| | 63 | .optimize = .Debug, |
| 62 | }); | 64 | }); |
| 63 | const install_std_docs = b.addInstallDirectory(.{ | 65 | const install_std_docs = b.addInstallDirectory(.{ |
| 64 | .source_dir = autodoc_test.getEmittedDocs(), | 66 | .source_dir = autodoc_test.getEmittedDocs(), |