Fix Linux Makefile parallelism
Makefile != bourne shell, I think. At least on my systems, this was causing a raw -j, which meant that make had no restriction on its parallelism (i.e. tried to build everything at once).
This commit is contained in:
parent
5bd0aafc24
commit
07f439c598
2
make.mk
2
make.mk
@ -31,7 +31,7 @@ else
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(DETECTED_OS), LINUX)
|
ifeq ($(DETECTED_OS), LINUX)
|
||||||
MAKEFLAGS += -j `nproc`
|
MAKEFLAGS += -j $(shell nproc)
|
||||||
endif
|
endif
|
||||||
ifeq ($(DETECTED_OS), OSX)
|
ifeq ($(DETECTED_OS), OSX)
|
||||||
NPROCS = $(shell sysctl hw.ncpu | grep -o '[0-9]\+')
|
NPROCS = $(shell sysctl hw.ncpu | grep -o '[0-9]\+')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user