mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
build: spend a lot less time generating std docs
This commit is contained in:
parent
8b70e4f2c9
commit
c2e978f04f
1 changed files with 3 additions and 1 deletions
|
|
@ -55,10 +55,12 @@ pub fn build(b: *std.Build) !void {
|
||||||
b.getInstallStep().dependOn(&install_langref.step);
|
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" },
|
.root_source_file = .{ .path = "lib/std/std.zig" },
|
||||||
.target = target,
|
.target = target,
|
||||||
.zig_lib_dir = .{ .path = "lib" },
|
.zig_lib_dir = .{ .path = "lib" },
|
||||||
|
.optimize = .Debug,
|
||||||
});
|
});
|
||||||
const install_std_docs = b.addInstallDirectory(.{
|
const install_std_docs = b.addInstallDirectory(.{
|
||||||
.source_dir = autodoc_test.getEmittedDocs(),
|
.source_dir = autodoc_test.getEmittedDocs(),
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue