[llvm] [OCaml] build ocaml_doc by default to avoid missing install artifacts (PR #154412)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 14 19:09:52 PDT 2025
================
@@ -136,17 +136,19 @@ if( NOT uses_ocaml LESS 0 AND LLVM_ENABLE_OCAMLDOC )
list(APPEND odoc_files -load ${odoc_file})
endforeach()
- add_custom_target(ocaml_doc
- COMMAND ${CMAKE_COMMAND} -E remove_directory ${CMAKE_CURRENT_BINARY_DIR}/ocamldoc/html
- COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_CURRENT_BINARY_DIR}/ocamldoc/html
- COMMAND ${OCAMLFIND} ocamldoc -d ${CMAKE_CURRENT_BINARY_DIR}/ocamldoc/html
- -sort -colorize-code -html ${odoc_files}
- COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/_ocamldoc/style.css
- ${CMAKE_CURRENT_BINARY_DIR}/ocamldoc/html)
+ if(LLVM_BUILD_DOCS)
+ add_custom_target(ocaml_doc ${OCAML_DOC_ADD_TO_ALL}
----------------
Acture wrote:
@nikic Let me know if there's anything else I can do.
https://github.com/llvm/llvm-project/pull/154412
More information about the llvm-commits
mailing list