Updated build file.

This commit is contained in:
2026-09-29 07:54:23 +02:00
parent 29c88a67ad
commit 5f38503b49
Regular → Executable
+2 -4
View File
@@ -4,6 +4,7 @@ set -e
# Find the odin binary
export PATH="$HOME/.odin:$PATH"
SRC_DIR="src"
OUT_DIR="out"
OUT_NAME="pong"
@@ -68,7 +69,7 @@ if [ "$OPTIMIZED" -eq 1 ]; then
echo "Building optimized ($SRC_DIR -> $OUT_DIR/$OUT_NAME)..."
odin build "$SRC_DIR" \
-out:"$OUT_DIR/$OUT_NAME" \
-o:speed \
-o:speed u
-no-bounds-check
else
echo "Building debug ($SRC_DIR -> $OUT_DIR/$OUT_NAME)..."
@@ -86,9 +87,6 @@ if [ "$BUILD_ONLY" -eq 0 ]; then
lldb "$OUT_DIR/$OUT_NAME"
elif [ "$VALGRIND" -eq 1 ]; then
# --show-leak-kinds=definite,possible reduces tons of noise
# still shows the leaks you actually need to fix.
# to audit whole process, temporarily switch back to --show-leak-kinds=all
valgrind \
--leak-check=full \
--show-leak-kinds=definite,possible \