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>2019-11-18 08:27:06 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-11-18 08:27:06 +0300
commit99640d06223428efef58a42438d4021d7d983e67 (patch)
tree8d7479eac1a3d6f3e222da4a6ea71e7242fa0f30 /GNUmakefile
parent047d2b055978ffa59697261656f1f77c48b9573a (diff)
Fix building on NetBSD
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 2c7856db7b4..accedbbbe4b 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -276,7 +276,10 @@ ifndef NPROCS
ifeq ($(OS), Linux)
NPROCS:=$(shell nproc)
endif
- ifneq (,$(filter $(OS),Darwin FreeBSD NetBSD))
+ ifeq ($(OS), NetBSD)
+ NPROCS:=$(shell getconf NPROCESSORS_ONLN)
+ endif
+ ifneq (,$(filter $(OS),Darwin FreeBSD))
NPROCS:=$(shell sysctl -n hw.ncpu)
endif
endif