mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-22 23:24:44 +00:00
Determine number of cpus on osx.
This commit is contained in:
parent
f98c2bc414
commit
b76c930c4f
1 changed files with 2 additions and 1 deletions
3
Makefile
3
Makefile
|
|
@ -22,11 +22,12 @@ DNSPYTHON:=$(HOME)/src/dnspython-git
|
|||
PEP8OPTS:=--repeat --ignore=E211,E501,E225,E301,E302,E241 \
|
||||
--exclude="gzip2.py,httplib2.py,robotparser2.py"
|
||||
PY2APPOPTS ?=
|
||||
NUMPROCESSORS:=$(shell grep -c processor /proc/cpuinfo)
|
||||
ifeq ($(shell uname),Darwin)
|
||||
CHMODMINUSMINUS:=
|
||||
NUMPROCESSORS:=$(shell sysctl -n hw.ncpu)
|
||||
else
|
||||
CHMODMINUSMINUS:=--
|
||||
NUMPROCESSORS:=$(shell grep -c processor /proc/cpuinfo)
|
||||
endif
|
||||
# Pytest options:
|
||||
# - use multiple processors
|
||||
|
|
|
|||
Loading…
Reference in a new issue