mirror of
https://codeberg.org/armin/rmx-19.git
synced 2026-10-11 16:51:55 +02:00
build with all cores by default (JOBS override)
This commit is contained in:
parent
20c999ef21
commit
0e7c0c4c4d
2 changed files with 7 additions and 3 deletions
5
Makefile
5
Makefile
|
|
@ -14,6 +14,9 @@ BUILD_DIR ?= build
|
|||
CONFIG ?= Release
|
||||
PLUGIN_BASE = RMX-19
|
||||
|
||||
# Parallel compile: use every logical core by default. Override with `make JOBS=8`.
|
||||
JOBS ?= $(shell nproc 2>/dev/null || sysctl -n hw.ncpu 2>/dev/null || echo 4)
|
||||
|
||||
CMAKE := cmake
|
||||
BUILD_DIR_ABSPATH := $(abspath $(BUILD_DIR))
|
||||
ARTEFACTS := $(BUILD_DIR)/RMX19_artefacts/$(CONFIG)
|
||||
|
|
@ -46,7 +49,7 @@ CMAKE_BUILD_TYPE := $(CONFIG)
|
|||
all: build
|
||||
|
||||
build: configure
|
||||
$(CMAKE) --build $(BUILD_DIR) --config $(CONFIG) --parallel
|
||||
$(CMAKE) --build $(BUILD_DIR) --config $(CONFIG) --parallel $(JOBS)
|
||||
|
||||
juce:
|
||||
@if [ ! -d "$(JUCE_DIR)" ]; then \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue