[llvm] r283188 - [cmake] Use separate doctrees to prevent races between Sphinx instances
Michal Gorny via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 3 23:09:14 PDT 2016
Author: mgorny
Date: Tue Oct 4 01:09:14 2016
New Revision: 283188
URL: http://llvm.org/viewvc/llvm-project?rev=283188&view=rev
Log:
[cmake] Use separate doctrees to prevent races between Sphinx instances
Use separate doctrees between different Sphinx builders in order to
prevent race condition issues due to multiple Sphinx instances accessing
the same doctree cache in parallel.
Bug: https://llvm.org/bugs/show_bug.cgi?id=23781
Differential Revision: https://reviews.llvm.org/D23755
Modified:
llvm/trunk/cmake/modules/AddSphinxTarget.cmake
Modified: llvm/trunk/cmake/modules/AddSphinxTarget.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/AddSphinxTarget.cmake?rev=283188&r1=283187&r2=283188&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/AddSphinxTarget.cmake (original)
+++ llvm/trunk/cmake/modules/AddSphinxTarget.cmake Tue Oct 4 01:09:14 2016
@@ -6,7 +6,7 @@
# ``project`` should be the project name
function (add_sphinx_target builder project)
set(SPHINX_BUILD_DIR "${CMAKE_CURRENT_BINARY_DIR}/${builder}")
- set(SPHINX_DOC_TREE_DIR "${CMAKE_CURRENT_BINARY_DIR}/_doctrees")
+ set(SPHINX_DOC_TREE_DIR "${CMAKE_CURRENT_BINARY_DIR}/_doctrees-${builder}")
set(SPHINX_TARGET_NAME docs-${project}-${builder})
if (SPHINX_WARNINGS_AS_ERRORS)
More information about the llvm-commits
mailing list