From d0bed6e00df5e7e7f5df58fc995fde1419414598 Mon Sep 17 00:00:00 2001 From: Julian Rex Date: Tue, 10 Mar 2020 16:02:41 -0400 Subject: [PATCH] Try with 1 less core. --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2975fe8ec..ca36b4d41 100644 --- a/Makefile +++ b/Makefile @@ -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)