Skip to content

Commit 0884a43

Browse files
committed
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 parent aab5ccc commit 0884a43

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

CMakeLists.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -923,8 +923,11 @@ if(MSVC OR MINGW)
923923
endif()
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.
928931
set(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

942944
if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")

0 commit comments

Comments
 (0)