forked from bartvdbraak/blender
Makefile support for using NPROCS as an env var
This commit is contained in:
parent
a2d4c26aa2
commit
424e5be046
26
GNUmakefile
26
GNUmakefile
@ -81,18 +81,20 @@ endif
|
|||||||
|
|
||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
# Get the number of cores for threaded build
|
# Get the number of cores for threaded build
|
||||||
NPROCS:=1
|
ifndef NPROCS
|
||||||
ifeq ($(OS), Linux)
|
NPROCS:=1
|
||||||
NPROCS:=$(shell nproc)
|
ifeq ($(OS), Linux)
|
||||||
endif
|
NPROCS:=$(shell nproc)
|
||||||
ifeq ($(OS), Darwin)
|
endif
|
||||||
NPROCS:=$(shell sysctl -a | grep "hw.ncpu" | cut -d" " -f3)
|
ifeq ($(OS), Darwin)
|
||||||
endif
|
NPROCS:=$(shell sysctl -a | grep "hw.ncpu" | cut -d" " -f3)
|
||||||
ifeq ($(OS), FreeBSD)
|
endif
|
||||||
NPROCS:=$(shell sysctl -a | grep "hw.ncpu" | cut -d" " -f2 )
|
ifeq ($(OS), FreeBSD)
|
||||||
endif
|
NPROCS:=$(shell sysctl -a | grep "hw.ncpu" | cut -d" " -f2 )
|
||||||
ifeq ($(OS), NetBSD)
|
endif
|
||||||
NPROCS:=$(shell sysctl -a | grep "hw.ncpu" | cut -d" " -f2 )
|
ifeq ($(OS), NetBSD)
|
||||||
|
NPROCS:=$(shell sysctl -a | grep "hw.ncpu" | cut -d" " -f2 )
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user