summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-02-03 11:25:28 +0100
committerskal <pascal.massimino@gmail.com>2026-02-03 11:25:28 +0100
commit69a12784eb11784a187d18a6a88b23a1026d123c (patch)
treeedb8b49029f0fd89c168265ace4509fa901fad1d /scripts
parent8c3c220ae0eb62488c28318b0394007170df0e1d (diff)
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 <noreply@anthropic.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build_win.sh2
-rwxr-xr-xscripts/crunch_demo.sh2
-rwxr-xr-xscripts/gen_assets.sh2
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