Cubyz/debug_linux.sh
IntegratedQuantum a8470ea78a Always compile with --prominent-compile-errors
So far I couldn't see any downsides from doing this.
2025-07-21 18:37:48 +02:00

28 lines
394 B
Bash
Executable File

#!/bin/bash
cd "$(dirname "$0")"
fail () {
exit 1
}
if ! ./scripts/install_compiler_linux.sh
then
echo Failed to install Zig compiler.
fail
fi
echo "Building Zig Cubyz ($@) from source. This may take a few minutes..."
./compiler/zig/zig build --prominent-compile-errors "$@"
if [ $? != 0 ]
then
fail
fi
echo "Cubyz successfully built!"
echo "Launching Cubyz."
./zig-out/bin/Cubyzig