Try with 1 less core.

This commit is contained in:
Julian Rex
2020-03-10 16:02:41 -04:00
committed by Minh Nguyễn
parent e27b889215
commit d0bed6e00d

View File

@@ -19,7 +19,8 @@ ifeq ($(shell uname -s), Darwin)
HOST_PLATFORM = macos
HOST_PLATFORM_VERSION = $(shell uname -m)
export NINJA = platform/macos/ninja
export JOBS ?= $(shell sysctl -n hw.ncpu)
export NCPU := $(shell sysctl -n hw.ncpu)
export JOBS ?= $(shell expr $(NCPU) - 1)
else ifeq ($(shell uname -s), Linux)
HOST_PLATFORM = linux
HOST_PLATFORM_VERSION = $(shell uname -m)