build: use ninja for cmake packages by default
authorFelix Fietkau <nbd@nbd.name>
Thu, 10 Jun 2021 12:01:04 +0000 (14:01 +0200)
committerFelix Fietkau <nbd@nbd.name>
Sat, 12 Jun 2021 08:46:39 +0000 (10:46 +0200)
commit0c7c24d40aedcee25d5243e25a87d38246be128b
tree88cf429cac7e8a0e467e9cf76cdc94f254ec28ea
parent09de28090cfb3fb605e6f4b452503a4ec2c6c43f
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: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Rosen Penev <rosenp@gmail.com>
include/cmake.mk