[libc-commits] [libc] [libc][docgen] regen docgen via cmake (PR #119628)
via libc-commits
libc-commits at lists.llvm.org
Wed Dec 11 15:03:53 PST 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libc
Author: Nick Desaulniers (nickdesaulniers)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/119628.diff
1 Files Affected:
- (modified) libc/docs/CMakeLists.txt (+9)
``````````diff
diff --git a/libc/docs/CMakeLists.txt b/libc/docs/CMakeLists.txt
index be09423d38e8e3..c8e9bcd29f612c 100644
--- a/libc/docs/CMakeLists.txt
+++ b/libc/docs/CMakeLists.txt
@@ -4,6 +4,15 @@ include(AddSphinxTarget)
if (SPHINX_FOUND)
if (${SPHINX_OUTPUT_HTML})
add_sphinx_target(html libc)
+
+ list(APPEND docgen_list string strings)
+
+ foreach(stem IN LISTS docgen_list)
+ add_custom_target(${stem}_rst
+ COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/../utils/docgen/docgen.py ${stem}.h >
+ ${CMAKE_CURRENT_SOURCE_DIR}/headers/${stem}.rst)
+ add_dependencies(docs-libc-html ${stem}_rst)
+ endforeach()
endif()
endif()
endif()
``````````
</details>
https://github.com/llvm/llvm-project/pull/119628
More information about the libc-commits
mailing list