Updated build file.
This commit is contained in:
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user