Skip to content

Commit fd9f63b

Browse files
committedOct 4, 2016
[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 llvm-svn: 283188
1 parent 4820cc9 commit fd9f63b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎llvm/cmake/modules/AddSphinxTarget.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# ``project`` should be the project name
77
function (add_sphinx_target builder project)
88
set(SPHINX_BUILD_DIR "${CMAKE_CURRENT_BINARY_DIR}/${builder}")
9-
set(SPHINX_DOC_TREE_DIR "${CMAKE_CURRENT_BINARY_DIR}/_doctrees")
9+
set(SPHINX_DOC_TREE_DIR "${CMAKE_CURRENT_BINARY_DIR}/_doctrees-${builder}")
1010
set(SPHINX_TARGET_NAME docs-${project}-${builder})
1111

1212
if (SPHINX_WARNINGS_AS_ERRORS)

0 commit comments

Comments
 (0)
Please sign in to comment.