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.
This commit is contained in:
Daniel Bevenius 2026-08-22 07:11:20 +02:00 committed by GitHub
parent 45f1593fd3
commit ab578879ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -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 ..."