From 69a12784eb11784a187d18a6a88b23a1026d123c Mon Sep 17 00:00:00 2001 From: skal Date: Tue, 3 Feb 2026 11:25:28 +0100 Subject: build: Enable parallel compilation in build scripts Add -j8 flag to all cmake --build commands to use 8 threads for faster parallel compilation across gen_assets.sh, crunch_demo.sh, and build_win.sh scripts. Co-Authored-By: Claude Sonnet 4.5 --- scripts/build_win.sh | 2 +- scripts/crunch_demo.sh | 2 +- scripts/gen_assets.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/build_win.sh b/scripts/build_win.sh index 6c370a8..c062929 100755 --- a/scripts/build_win.sh +++ b/scripts/build_win.sh @@ -4,7 +4,7 @@ set -e # 1. Build native tools (asset_packer) echo "Building native tools..." cmake -S . -B build_native -DDEMO_BUILD_TOOLS=OFF -DDEMO_BUILD_TESTS=OFF -cmake --build build_native --target asset_packer seq_compiler +cmake --build build_native --target asset_packer seq_compiler -j8 ASSET_PACKER_PATH=$(pwd)/build_native/asset_packer SEQ_COMPILER_PATH=$(pwd)/build_native/seq_compiler diff --git a/scripts/crunch_demo.sh b/scripts/crunch_demo.sh index 8584209..c88e8d9 100755 --- a/scripts/crunch_demo.sh +++ b/scripts/crunch_demo.sh @@ -5,7 +5,7 @@ set -e echo "Building stripped binary..." cmake -S . -B build_strip -DDEMO_STRIP_ALL=ON -cmake --build build_strip +cmake --build build_strip -j8 SRC_BIN="build_strip/demo64k" OUT_BIN="build_strip/demo64k_packed" diff --git a/scripts/gen_assets.sh b/scripts/gen_assets.sh index 1e799f2..a5c0bdc 100755 --- a/scripts/gen_assets.sh +++ b/scripts/gen_assets.sh @@ -3,7 +3,7 @@ # generate some assets # Ensure tools are built -cmake --build build +cmake --build build -j8 # Analyze drum sounds ./build/spectool analyze ./assets/wav/kick/Glum\ Kick.wav ./assets/final/kick1.spec -- cgit v1.2.3