From ab578879ecba93490fb17c7a57ca2d376088b5ae Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Sat, 22 Aug 2026 07:11:20 +0200 Subject: [PATCH] make : add --parallel to cmake build command (#4007) This commit adds the --parallel flag to the cmake build command to speed up compilation. This will hopefully help a little with CI runs even though the are often limited to 2 cores. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 97a26d48f..7c4fbe3f2 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ .PHONY: build build: cmake -B build $(CMAKE_ARGS) - cmake --build build --config Release + cmake --build build --config Release --parallel $(shell nproc) # download a few audio samples into folder "./samples": .PHONY: samples @@ -42,7 +42,7 @@ samples: tiny.en tiny base.en base small.en small medium.en medium large-v1 large-v2 large-v3 large-v3-turbo: bash ./models/download-ggml-model.sh $@ cmake -B build $(CMAKE_ARGS) - cmake --build build --config Release + cmake --build build --config Release --parallel $(shell nproc) @echo "" @echo "===============================================" @echo "Running $@ on all samples in ./samples ..."