[PATCH] D23755: cmake: Add an ordering dep between HTML & man Sphinx targets

Michał Górny via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 21 01:04:28 PDT 2016


mgorny created this revision.
mgorny added a reviewer: rnk.
mgorny added a subscriber: llvm-commits.

Add a dependency between HTML & manpage Sphinx targets to prevent two
instances of Sphinx from running in parallel, and therefore solves race
conditions reusing the same doctree directory.

Bug: https://llvm.org/bugs/show_bug.cgi?id=23781


https://reviews.llvm.org/D23755

Files:
  docs/CMakeLists.txt

Index: docs/CMakeLists.txt
===================================================================
--- docs/CMakeLists.txt
+++ docs/CMakeLists.txt
@@ -109,6 +109,9 @@
 
     if (${SPHINX_OUTPUT_MAN})
       add_sphinx_target(man llvm)
+      if (${SPHINX_OUTPUT_HTML})
+        add_dependencies(docs-llvm-html docs-llvm-man)
+      endif()
     endif()
 
   endif()


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23755.68804.patch
Type: text/x-patch
Size: 362 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160821/70ac552e/attachment.bin>


More information about the llvm-commits mailing list