| ... | @@ -31,7 +31,7 @@ pub fn build(b: *std.Build) !void { | ... | @@ -31,7 +31,7 @@ pub fn build(b: *std.Build) !void { |
| 31 | const test_step = b.step("test", "Run all the tests"); | 31 | const test_step = b.step("test", "Run all the tests"); |
| 32 | 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; | 32 | 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; |
| 33 | const skip_install_langref = b.option(bool, "no-langref", "skip copying of langref to the installation prefix") orelse skip_install_lib_files; | 33 | 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; |
| 35 | const no_bin = b.option(bool, "no-bin", "skip emitting compiler binary") orelse false; | 35 | const no_bin = b.option(bool, "no-bin", "skip emitting compiler binary") orelse false; |
| 36 | | 36 | |
| 37 | const docgen_exe = b.addExecutable(.{ | 37 | const docgen_exe = b.addExecutable(.{ |
| ... | @@ -65,7 +65,7 @@ pub fn build(b: *std.Build) !void { | ... | @@ -65,7 +65,7 @@ pub fn build(b: *std.Build) !void { |
| 65 | .install_dir = .prefix, | 65 | .install_dir = .prefix, |
| 66 | .install_subdir = "doc/std", | 66 | .install_subdir = "doc/std", |
| 67 | }); | 67 | }); |
| 68 | if (!skip_install_autodocs) { | 68 | if (std_docs) { |
| 69 | b.getInstallStep().dependOn(&install_std_docs.step); | 69 | b.getInstallStep().dependOn(&install_std_docs.step); |
| 70 | } | 70 | } |
| 71 | | 71 | |