File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1000,10 +1000,15 @@ prioritize_long_running_tests = \
10001000
10011001# "make check" uses
10021002# Run with "make J=1 check" to disable parallelism in "make check".
1003- # Run with "make J=200% check" to run two parallel jobs per core.
1004- # The default is to run one job per core (J=100% ).
1003+ # Run with "make J=$(shell expr $(NPROC) * 2) check" to run two parallel jobs per core.
1004+ # The default is to run one job per core except to leave one core free (J=$(shell expr $(NPROC) - 1) ).
10051005# See "man parallel" for its "-j ..." option.
1006- J ?= 100%
1006+ ifeq ($(PLATFORM ) ,OS_MACOSX)
1007+ NPROC ?= $(shell sysctl -n hw.logicalcpu)
1008+ else
1009+ NPROC ?= $(shell nproc)
1010+ endif
1011+ J ?= $(shell expr $(NPROC ) - 1)
10071012
10081013# Use this regexp to select the subset of tests whose names match.
10091014tests-regexp = .
You can’t perform that action at this time.
0 commit comments