Skip to content
Snippets Groups Projects
Commit 20f971e4 authored by Florian Schmaus's avatar Florian Schmaus
Browse files

Merge branch 'make-ninja-respect-load' into 'master'

[Makefile] Make ninja consider the load average

See merge request !149
parents b94eacc7 a9ec3c16
No related branches found
No related tags found
1 merge request!149[Makefile] Make ninja consider the load average
Pipeline #59733 passed
......@@ -15,8 +15,12 @@ all: build
export BUILDTYPE ?= debugoptimized
export BUILDDIR = build-$(BUILDTYPE)
NPROC := $(shell nproc)
JOBS := $(shell echo $$(( $(NPROC) + 6)))
LOAD := $(shell echo $$(( $(NPROC) * 2)))
NINJA_BIN ?= ninja
NINJA := $(NINJA_BIN) $(EXTRA_NINJA_ARGS)
NINJA := $(NINJA_BIN) -j $(JOBS) -l $(LOAD) $(EXTRA_NINJA_ARGS)
build:
[[ -L build ]] || ./tools/prepare-build-dir
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment