mirror of
https://github.com/ziglang/zig.git
synced 2025-02-16 01:20:18 +00:00
build: don't include std lib docs by default
since we have `zig std` now to fill that role.
This commit is contained in:
parent
261094ca85
commit
8dcc35e5ce
@ -31,7 +31,7 @@ pub fn build(b: *std.Build) !void {
|
||||
const test_step = b.step("test", "Run all the tests");
|
||||
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;
|
||||
const skip_install_langref = b.option(bool, "no-langref", "skip copying of langref to the installation prefix") orelse skip_install_lib_files;
|
||||
const skip_install_autodocs = b.option(bool, "no-autodocs", "skip copying of standard library autodocs to the installation prefix") orelse skip_install_lib_files;
|
||||
const std_docs = b.option(bool, "std-docs", "include standard library autodocs") orelse false;
|
||||
const no_bin = b.option(bool, "no-bin", "skip emitting compiler binary") orelse false;
|
||||
|
||||
const docgen_exe = b.addExecutable(.{
|
||||
@ -65,7 +65,7 @@ pub fn build(b: *std.Build) !void {
|
||||
.install_dir = .prefix,
|
||||
.install_subdir = "doc/std",
|
||||
});
|
||||
if (!skip_install_autodocs) {
|
||||
if (std_docs) {
|
||||
b.getInstallStep().dependOn(&install_std_docs.step);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user