Skip to content

Commit e0e3a49

Browse files
authored
Revert Sphinx parallel build of HTML docs (#1293)
1 parent b62740c commit e0e3a49

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

build/cmake/SphinxBuild.cmake

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,14 @@ function (sphinx_build_html target_name doc_dir)
3333
list (APPEND doc_htmls ${html})
3434
endforeach ()
3535

36-
# Speed things up with parallel Sphinx builders:
37-
include (ProcessorCount)
38-
ProcessorCount (jobs)
39-
math (EXPR jobs "${jobs} + 2")
40-
4136
# Set PYTHONDONTWRITEBYTECODE to prevent .pyc clutter in the source directory
4237
add_custom_command (OUTPUT ${doc_htmls}
4338
${SPHINX_HTML_DIR}/.nojekyll ${SPHINX_HTML_DIR}/objects.inv
4439
COMMAND
4540
${CMAKE_COMMAND} -E env
4641
"PYTHONDONTWRITEBYTECODE=1"
4742
${SPHINX_EXECUTABLE}
48-
-qEnW -j "${jobs}" -b html
43+
-qEnW -b html
4944
-c "${CMAKE_CURRENT_SOURCE_DIR}"
5045
"${CMAKE_CURRENT_SOURCE_DIR}"
5146
"${SPHINX_HTML_DIR}"
@@ -137,8 +132,6 @@ function (sphinx_build_man target_name)
137132
COMMAND
138133
${CMAKE_COMMAND} -E env
139134
"PYTHONDONTWRITEBYTECODE=1"
140-
# No parallelism for Sphinx here, as the Man builder has trouble with it
141-
# in our Sphinx version.
142135
${SPHINX_EXECUTABLE}
143136
-qEW -b man
144137
-c "${CMAKE_CURRENT_SOURCE_DIR}"
@@ -166,4 +159,3 @@ function (sphinx_build_man target_name)
166159
set (doc_DIST_rsts ${doc_rsts} PARENT_SCOPE)
167160
set (doc_DIST_mans ${doc_mans} PARENT_SCOPE)
168161
endfunction ()
169-

0 commit comments

Comments
 (0)