build: opt-in ccache + BUILD_DIR override

CMakeLists.txt: CMAKE_{C,CXX}_COMPILER_LAUNCHER=ccache when found (no-op
otherwise); game sources are frozen so branch-switch rebuilds get near-free.
build-pc.sh: BUILD_DIR=${BUILD_DIR:-build-pc} so parallel agents/worktrees
can use separate build dirs.
This commit is contained in:
James Dansereau committed 2026-09-02 23:54:36 -04:00
1 parent 20cd247084
commit b49907ded9
2 files changed
+11 -1

No files matched your search

+1 -1
View File
@@ -22,7 +22,7 @@
set -euo pipefail
ROMID="${1:-ntsc-final}"
BUILD_DIR="build-pc"
BUILD_DIR="${BUILD_DIR:-build-pc}"
echo "==> Configuring PC port (ROMID=${ROMID})"
cmake -S . -B "${BUILD_DIR}" -DROMID="${ROMID}"