| author | |
| committer | |
| log | 856a9c2e3120d9ffa1166eed13641600230946da |
| tree | 7156ac2336d71fda45ba3fdc8e90c20f8e44ab56 |
| parent | 60bd13bdf2f4834436df8c561b3bc95ec08af34e |
2 files changed, 11 insertions(+), 1 deletions(-)
CMakeLists.txt+9| ... | ... | @@ -81,6 +81,9 @@ message(STATUS "Configuring zig version ${RESOLVED_ZIG_VERSION}") |
| 81 | 81 | set(ZIG_NO_LIB off CACHE BOOL |
| 82 | 82 | "Disable copying lib/ files to install prefix during the build phase") |
| 83 | 83 | |
| 84 | set(ZIG_NO_LANGREF off CACHE BOOL | |
| 85 | "Disable copying of langref to the install prefix during the build phase") | |
| 86 | ||
| 84 | 87 | set(ZIG_SKIP_INSTALL_LIB_FILES off CACHE BOOL "Deprecated. Use ZIG_NO_LIB") |
| 85 | 88 | if(ZIG_SKIP_INSTALL_LIB_FILES) |
| 86 | 89 | message(WARNING "ZIG_SKIP_INSTALL_LIB_FILES is deprecated. Use ZIG_NO_LIB instead.") |
| ... | ... | @@ -819,6 +822,11 @@ if(ZIG_NO_LIB) |
| 819 | 822 | else() |
| 820 | 823 | set(ZIG_NO_LIB_ARG "") |
| 821 | 824 | endif() |
| 825 | if(ZIG_NO_LANGREF) | |
| 826 | set(ZIG_NO_LANGREF_ARG "-Dno-langref") | |
| 827 | else() | |
| 828 | set(ZIG_NO_LANGREF_ARG "") | |
| 829 | endif() | |
| 822 | 830 | if(ZIG_SINGLE_THREADED) |
| 823 | 831 | set(ZIG_SINGLE_THREADED_ARG "-fsingle-threaded") |
| 824 | 832 | else() |
| ... | ... | @@ -843,6 +851,7 @@ set(ZIG_BUILD_ARGS |
| 843 | 851 | ${ZIG_RELEASE_ARG} |
| 844 | 852 | ${ZIG_STATIC_ARG} |
| 845 | 853 | ${ZIG_NO_LIB_ARG} |
| 854 | ${ZIG_NO_LANGREF_ARG} | |
| 846 | 855 | ${ZIG_SINGLE_THREADED_ARG} |
| 847 | 856 | ${ZIG_PIE_ARG} |
| 848 | 857 | "-Dtarget=${ZIG_TARGET_TRIPLE}" |
build.zig+2-1| ... | ... | @@ -36,6 +36,7 @@ pub fn build(b: *std.Build) !void { |
| 36 | 36 | std.log.warn("-Dskip-install-lib-files is deprecated in favor of -Dno-lib", .{}); |
| 37 | 37 | } |
| 38 | 38 | const skip_install_lib_files = b.option(bool, "no-lib", "skip copying of lib/ files and langref to installation prefix. Useful for development") orelse deprecated_skip_install_lib_files; |
| 39 | const skip_install_langref = b.option(bool, "no-langref", "skip copying of langref to the installation prefix") orelse skip_install_lib_files; | |
| 39 | 40 | |
| 40 | 41 | const docgen_exe = b.addExecutable(.{ |
| 41 | 42 | .name = "docgen", |
| ... | ... | @@ -53,7 +54,7 @@ pub fn build(b: *std.Build) !void { |
| 53 | 54 | docgen_cmd.addFileSourceArg(.{ .path = "doc/langref.html.in" }); |
| 54 | 55 | const langref_file = docgen_cmd.addOutputFileArg("langref.html"); |
| 55 | 56 | const install_langref = b.addInstallFileWithDir(langref_file, .prefix, "doc/langref.html"); |
| 56 | if (!skip_install_lib_files) { | |
| 57 | if (!skip_install_langref) { | |
| 57 | 58 | b.getInstallStep().dependOn(&install_langref.step); |
| 58 | 59 | } |
| 59 | 60 |