Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2017-08-10 15:36:47 +0300
committerCampbell Barton <ideasman42@gmail.com>2017-08-10 15:37:35 +0300
commit05be2a8c454f25f9b1ae425d51a846b408f116b7 (patch)
tree09d10e942620ab28bb3d2eb54a1ab7a88f4945b9 /GNUmakefile
parent1037b90cb831bfc454966f08fe3ff96843e2499b (diff)
Cleanup: de-duplicate makefile OS checks
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile8
1 files changed, 1 insertions, 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