Skip to content

Commit f875ad9

Browse files
committed
Replace nproc with getconf _NPROCESSORS_ONLN
``getconf _NPROCESSORS_ONLN`` is available in both Linux and macOS, but ``nproc`` is not. This change prevents the build from breaking again if macOS ever upgrades its `make` to version 4 or above.
1 parent 04c4d54 commit f875ad9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ dist-pdf:
242242
# ($$ is needed to escape the $; https://www.gnu.org/software/make/manual/make.html#Basics-of-Variable-References)
243243
-sed -i 's/: all-$$(FMT)/:/' build/latex/Makefile
244244
if [ -n "$(filter output-sync,$(value .FEATURES))" ]; then \
245-
(cd build/latex; $(MAKE) clean && $(MAKE) --jobs=$$((`nproc`+1)) --output-sync LATEXMKOPTS='-quiet' all-pdf && $(MAKE) FMT=pdf zip bz2) \
245+
(cd build/latex; $(MAKE) clean && $(MAKE) --jobs=$$((`getconf _NPROCESSORS_ONLN`+1)) --output-sync LATEXMKOPTS='-quiet' all-pdf && $(MAKE) FMT=pdf zip bz2) \
246246
else \
247247
(cd build/latex; $(MAKE) clean && $(MAKE) --jobs=$$((`getconf _NPROCESSORS_ONLN`+1)) LATEXMKOPTS='-quiet' all-pdf && $(MAKE) FMT=pdf zip bz2) \
248248
fi

0 commit comments

Comments
 (0)