commit 0884a434117dee3458eea8890b2e47e432844ac3 (tree)
parent aab5cccc78311b01516ed094bf0e9b4bbb6b4577
Author: Andrew Kelley <andrew@ziglang.org>
Date: Fri, 7 Jun 2024 12:42:14 -0700
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.
Diffstat:
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
@@ -923,8 +923,11 @@ if(MSVC OR MINGW)
endif()
-# "-Dno-langref" and "-Dstd-docs=false" are hardcoded because they take too long to build.
-# To obtain these two forms of documentation, run zig build against stage3 rather than stage2.
+# "-Dno-langref" is hardcoded because stage2 builds lack the `@cImport`
+# feature, which some of the doctests rely on.
+
+# To obtain this document, run `zig build` against stage3 rather than stage2.
+# Note that the `langref` step can be used to isolate this task.
set(ZIG_BUILD_ARGS
--zig-lib-dir "${PROJECT_SOURCE_DIR}/lib"
@@ -936,7 +939,6 @@ set(ZIG_BUILD_ARGS
"-Dconfig_h=${ZIG_CONFIG_H_OUT}"
-Dno-langref
- -Dstd-docs=false
)
if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")