From 3cf463e1250babee8be449ca28925f701e7fa29a Mon Sep 17 00:00:00 2001 From: cyan Date: Tue, 26 Nov 2024 03:22:30 +0000 Subject: - multithread build system - fix android, mingw and linux build issues - remove dependency check - update Dockerfile to include pigz - show a message when pigz is missing - fix devcontainer mingw setup (missing ENV) --- contrib/depends/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'contrib/depends/Makefile') diff --git a/contrib/depends/Makefile b/contrib/depends/Makefile index 0cf6086..7474dcf 100644 --- a/contrib/depends/Makefile +++ b/contrib/depends/Makefile @@ -13,6 +13,14 @@ DOWNLOAD_CONNECT_TIMEOUT:=30 DOWNLOAD_RETRIES:=5 HOST_ID_SALT ?= salt BUILD_ID_SALT ?= salt +# Detect the number of CPU cores +ifeq ($(shell uname), Darwin) + NUM_CORES := $(shell sysctl -n hw.ncpu) +else ifeq ($(shell uname), Linux) + NUM_CORES := $(shell nproc) +else + NUM_CORES := 1 # Default if the OS is not detected +endif host:=$(BUILD) ifneq ($(HOST),) -- cgit v1.2.3