From 0884a434117dee3458eea8890b2e47e432844ac3 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Fri, 7 Jun 2024 12:42:14 -0700 Subject: [PATCH] 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. --- CMakeLists.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9e477f8058..5c80443e3f 100644 --- 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")