authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-03-06 22:35:48-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-03-10 17:51:07-07:00
log8dcc35e5ce51819173420540853e028dfe06f491
tree46addd04ab7d1edcb324057cdacaa121a7dbeca9
parent261094ca857d27e1d4df9ca087b2a50868cd54e8

build: don't include std lib docs by default

since we have `zig std` now to fill that role.

1 files changed, 2 insertions(+), 2 deletions(-)

build.zig+2-2
......@@ -31,7 +31,7 @@ pub fn build(b: *std.Build) !void {
3131 const test_step = b.step("test", "Run all the tests");
3232 const skip_install_lib_files = b.option(bool, "no-lib", "skip copying of lib/ files and langref to installation prefix. Useful for development") orelse false;
3333 const skip_install_langref = b.option(bool, "no-langref", "skip copying of langref to the installation prefix") orelse skip_install_lib_files;
34 const skip_install_autodocs = b.option(bool, "no-autodocs", "skip copying of standard library autodocs to the installation prefix") orelse skip_install_lib_files;
34 const std_docs = b.option(bool, "std-docs", "include standard library autodocs") orelse false;
3535 const no_bin = b.option(bool, "no-bin", "skip emitting compiler binary") orelse false;
3636
3737 const docgen_exe = b.addExecutable(.{
......@@ -65,7 +65,7 @@ pub fn build(b: *std.Build) !void {
6565 .install_dir = .prefix,
6666 .install_subdir = "doc/std",
6767 });
68 if (!skip_install_autodocs) {
68 if (std_docs) {
6969 b.getInstallStep().dependOn(&install_std_docs.step);
7070 }
7171