Browse Source

Default to parallel builds in Sphinx for faster builds

`-j auto` detects the number of CPU threads automatically.

This partially addresses #2779.
Hugo Locurcio 5 years ago
parent
commit
309a4382c9
2 changed files with 2 additions and 1 deletions
  1. 1 1
      Makefile
  2. 1 0
      make.bat

+ 1 - 1
Makefile

@@ -2,7 +2,7 @@
 #
 
 # You can set these variables from the command line.
-SPHINXOPTS    =
+SPHINXOPTS    = -j auto
 SPHINXBUILD   = sphinx-build
 PAPER         =
 BUILDDIR      = _build

+ 1 - 0
make.bat

@@ -10,6 +10,7 @@ if "%SPHINXBUILD%" == "" (
 set SOURCEDIR=.
 set BUILDDIR=_build
 set SPHINXPROJ=Test
+set SPHINXOPTS=-j auto
 
 if "%1" == "" goto help