Skip to content
Snippets Groups Projects
Commit 0c7c24d4 authored by Felix Fietkau's avatar Felix Fietkau
Browse files

build: use ninja for cmake packages by default


Speed goes from:

Executed in     178.08 secs     fish            external
usr time        20.16 mins      509.00 micros   20.16 mins
sys time        2.88 mins       39.00 micros    2.88 mins

To:

Executed in     175.90 secs     fish            external
usr time        20.19 mins      0.00 micros     20.19 mins
sys time        2.85 mins       497.00 micros   2.85 mins

Tested with "time make -j 12" on AMD Ryzen 3600

When building individual packages, the build time difference is often
significantly bigger than that.

Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
Signed-off-by: default avatarRosen Penev <rosenp@gmail.com>
parent 09de2809
No related branches found
No related tags found
1 merge request!79Merge OpenWrt 22.03.0-rc4
cmake_bool = $(patsubst %,-D%:BOOL=$(if $($(1)),ON,OFF),$(2)) cmake_bool = $(patsubst %,-D%:BOOL=$(if $($(1)),ON,OFF),$(2))
PKG_USE_NINJA ?= 1
HOST_USE_NINJA ?= 1
ifeq ($(PKG_USE_NINJA),1) ifeq ($(PKG_USE_NINJA),1)
PKG_BUILD_PARALLEL ?= 1 PKG_BUILD_PARALLEL ?= 1
endif endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment