From 667212bd5dea1c791cf140c184b31ffc2dce12ac Mon Sep 17 00:00:00 2001 From: skal Date: Thu, 26 Mar 2026 07:40:45 +0100 Subject: chore(scripts): document and guard mingw-w64 setup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - check_all.sh: guard Windows cross-compile step with command -v check instead of failing unconditionally; print install hint when skipped - project_init.sh: add Linux/WSL setup path alongside existing macOS path — installs build-essential/cmake/glfw/wgpu-native via apt-get, prints mingw-w64 install hint if cross-compile toolchain is absent --- scripts/check_all.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'scripts/check_all.sh') diff --git a/scripts/check_all.sh b/scripts/check_all.sh index 1a8b406..c2f749c 100755 --- a/scripts/check_all.sh +++ b/scripts/check_all.sh @@ -48,7 +48,11 @@ echo "Running coverage test suite..." echo "" echo "--- Running Windows Cross-Compilation Build ---" -./scripts/build_win.sh +if command -v x86_64-w64-mingw32-gcc >/dev/null 2>&1; then + ./scripts/build_win.sh +else + echo "Skipped: mingw-w64 not found. Install with: sudo apt-get install -y mingw-w64" +fi echo "" echo "All checks passed successfully." -- cgit v1.2.3