authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-06-07 12:42:14-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-06-07 12:42:14-07:00
log0884a434117dee3458eea8890b2e47e432844ac3
tree0c2d33ae5157de8357872502b3b0e0da38642703
parentaab5cccc78311b01516ed094bf0e9b4bbb6b4577

CMake: remove -Dstd-docs=false flag when building stage3

This now defaults to false already since the autodocs rework. The langref still cannot be enabled by default because the langref contains doctests that exercise the `@cImport` feature which is disabled in zig2 builds.

1 files changed, 5 insertions(+), 3 deletions(-)

CMakeLists.txt+5-3
......@@ -923,8 +923,11 @@ if(MSVC OR MINGW)
923923endif()
924924
925925
926# "-Dno-langref" and "-Dstd-docs=false" are hardcoded because they take too long to build.
927# To obtain these two forms of documentation, run zig build against stage3 rather than stage2.
926# "-Dno-langref" is hardcoded because stage2 builds lack the `@cImport`
927# feature, which some of the doctests rely on.
928
929# To obtain this document, run `zig build` against stage3 rather than stage2.
930# Note that the `langref` step can be used to isolate this task.
928931set(ZIG_BUILD_ARGS
929932 --zig-lib-dir "${PROJECT_SOURCE_DIR}/lib"
930933
......@@ -936,7 +939,6 @@ set(ZIG_BUILD_ARGS
936939 "-Dconfig_h=${ZIG_CONFIG_H_OUT}"
937940
938941 -Dno-langref
939 -Dstd-docs=false
940942)
941943
942944if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")