fix make for Windows

This commit is contained in:
proddy
2025-12-03 22:05:45 +01:00
parent 45f3f23033
commit e6f825371e

View File

@@ -21,13 +21,14 @@ endif
# Optimize parallel build configuration # Optimize parallel build configuration
UNAME_S := $(shell uname -s) UNAME_S := $(shell uname -s)
JOBS ?= 1
ifeq ($(UNAME_S),Linux) ifeq ($(UNAME_S),Linux)
EXTRA_CPPFLAGS = -D LINUX EXTRA_CPPFLAGS = -D LINUX
JOBS ?= $(shell nproc) JOBS := $(shell nproc)
endif endif
ifeq ($(UNAME_S),Darwin) ifeq ($(UNAME_S),Darwin)
EXTRA_CPPFLAGS = -D OSX -Wno-tautological-constant-out-of-range-compare EXTRA_CPPFLAGS = -D OSX -Wno-tautological-constant-out-of-range-compare
JOBS ?= $(shell sysctl -n hw.ncpu) JOBS := $(shell sysctl -n hw.ncpu)
endif endif
# Set optimal parallel build settings # Set optimal parallel build settings