summaryrefslogtreecommitdiff
path: root/contrib/depends/Makefile
diff options
context:
space:
mode:
authorcyan <cyjan@mrcyjanek.net>2024-11-26 03:22:30 +0000
committercyan <cyjan@mrcyjanek.net>2024-11-26 03:22:30 +0000
commit3cf463e1250babee8be449ca28925f701e7fa29a (patch)
tree8c198b862f0c80fb3ce7b97c13e3e22226b30475 /contrib/depends/Makefile
parentc90fa7019e8d6ce064e5736223ec055aafb37fd1 (diff)
- 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)
Diffstat (limited to 'contrib/depends/Makefile')
-rw-r--r--contrib/depends/Makefile8
1 files changed, 8 insertions, 0 deletions
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),)