From 05be2a8c454f25f9b1ae425d51a846b408f116b7 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 10 Aug 2017 22:36:47 +1000 Subject: [PATCH] Cleanup: de-duplicate makefile OS checks --- GNUmakefile | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/GNUmakefile b/GNUmakefile index 9661f292699..d1e575cfc3c 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -91,13 +91,7 @@ ifndef NPROCS ifeq ($(OS), Linux) NPROCS:=$(shell nproc) endif - ifeq ($(OS), Darwin) - NPROCS:=$(shell sysctl -n hw.ncpu) - endif - ifeq ($(OS), FreeBSD) - NPROCS:=$(shell sysctl -n hw.ncpu) - endif - ifeq ($(OS), NetBSD) + ifneq (,$(filter $(OS),Darwin FreeBSD NetBSD)) NPROCS:=$(shell sysctl -n hw.ncpu) endif endif