mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-03 12:24:46 +00:00
Count processors under OSX.
This commit is contained in:
parent
44c195f91b
commit
01004255b9
1 changed files with 5 additions and 1 deletions
6
Makefile
6
Makefile
|
|
@ -20,7 +20,11 @@ DNSPYTHON:=$(HOME)/src/dnspython-git
|
|||
PEP8OPTS:=--repeat --ignore=E211,E501,E225,E301,E302,E241 \
|
||||
--exclude="gzip2.py,httplib2.py,robotparser2.py,reindent.py"
|
||||
PY2APPOPTS ?=
|
||||
NUMPROCESSORS:=$(shell grep -c processor /proc/cpuinfo)
|
||||
ifeq ($(shell uname),Darwin)
|
||||
NUMPROCESSORS:=$(shell sysctl -a | grep machdep.cpu.core_count | cut -d " " -f 2)
|
||||
else
|
||||
NUMPROCESSORS:=$(shell grep -c processor /proc/cpuinfo)
|
||||
endif
|
||||
|
||||
|
||||
.PHONY: all
|
||||
|
|
|
|||
Loading…
Reference in a new issue