Cleanup: de-duplicate makefile OS checks
This commit is contained in:
@@ -91,13 +91,7 @@ ifndef NPROCS
|
|||||||
ifeq ($(OS), Linux)
|
ifeq ($(OS), Linux)
|
||||||
NPROCS:=$(shell nproc)
|
NPROCS:=$(shell nproc)
|
||||||
endif
|
endif
|
||||||
ifeq ($(OS), Darwin)
|
ifneq (,$(filter $(OS),Darwin FreeBSD NetBSD))
|
||||||
NPROCS:=$(shell sysctl -n hw.ncpu)
|
|
||||||
endif
|
|
||||||
ifeq ($(OS), FreeBSD)
|
|
||||||
NPROCS:=$(shell sysctl -n hw.ncpu)
|
|
||||||
endif
|
|
||||||
ifeq ($(OS), NetBSD)
|
|
||||||
NPROCS:=$(shell sysctl -n hw.ncpu)
|
NPROCS:=$(shell sysctl -n hw.ncpu)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
Reference in New Issue
Block a user