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:
James Haggerty 2022-10-25 09:24:54 +11:00
parent 5bd0aafc24
commit 07f439c598

View file

@ -31,7 +31,7 @@ else
endif
ifeq ($(DETECTED_OS), LINUX)
MAKEFLAGS += -j `nproc`
MAKEFLAGS += -j $(shell nproc)
endif
ifeq ($(DETECTED_OS), OSX)
NPROCS = $(shell sysctl hw.ncpu | grep -o '[0-9]\+')