From d4f9270fa9f6881464e29fea6b93dbac39b16f7a Mon Sep 17 00:00:00 2001 From: IntegratedQuantum Date: Sun, 25 Feb 2024 10:39:16 +0100 Subject: [PATCH] Don't call the compiler twice in the scripts. Zig sometimes doesn't cache stuff correctly. In the presence of this bug the game might be recompiled in the second compiler command. This doubled compile times in the worst case. --- debug_linux.sh | 2 +- debug_windows.bat | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/debug_linux.sh b/debug_linux.sh index 22bf7854..9f51d4fc 100755 --- a/debug_linux.sh +++ b/debug_linux.sh @@ -75,4 +75,4 @@ fi echo "Cubyz successfully built!" echo "Launching Cubyz." -./compiler/zig/zig build run "$@" +./zig-out/bin/Cubyzig diff --git a/debug_windows.bat b/debug_windows.bat index d5aa5a86..28302074 100644 --- a/debug_windows.bat +++ b/debug_windows.bat @@ -55,4 +55,4 @@ if errorlevel 1 ( echo Cubyz successfully built! echo Launching Cubyz. -compiler\zig\zig build run %* +zig-out\bin\Cubyzig