Updated build file.
This commit is contained in:
@@ -4,6 +4,7 @@ set -e
|
|||||||
# Find the odin binary
|
# Find the odin binary
|
||||||
export PATH="$HOME/.odin:$PATH"
|
export PATH="$HOME/.odin:$PATH"
|
||||||
|
|
||||||
|
|
||||||
SRC_DIR="src"
|
SRC_DIR="src"
|
||||||
OUT_DIR="out"
|
OUT_DIR="out"
|
||||||
OUT_NAME="pong"
|
OUT_NAME="pong"
|
||||||
@@ -68,7 +69,7 @@ if [ "$OPTIMIZED" -eq 1 ]; then
|
|||||||
echo "Building optimized ($SRC_DIR -> $OUT_DIR/$OUT_NAME)..."
|
echo "Building optimized ($SRC_DIR -> $OUT_DIR/$OUT_NAME)..."
|
||||||
odin build "$SRC_DIR" \
|
odin build "$SRC_DIR" \
|
||||||
-out:"$OUT_DIR/$OUT_NAME" \
|
-out:"$OUT_DIR/$OUT_NAME" \
|
||||||
-o:speed \
|
-o:speed u
|
||||||
-no-bounds-check
|
-no-bounds-check
|
||||||
else
|
else
|
||||||
echo "Building debug ($SRC_DIR -> $OUT_DIR/$OUT_NAME)..."
|
echo "Building debug ($SRC_DIR -> $OUT_DIR/$OUT_NAME)..."
|
||||||
@@ -86,9 +87,6 @@ if [ "$BUILD_ONLY" -eq 0 ]; then
|
|||||||
lldb "$OUT_DIR/$OUT_NAME"
|
lldb "$OUT_DIR/$OUT_NAME"
|
||||||
|
|
||||||
elif [ "$VALGRIND" -eq 1 ]; then
|
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 \
|
valgrind \
|
||||||
--leak-check=full \
|
--leak-check=full \
|
||||||
--show-leak-kinds=definite,possible \
|
--show-leak-kinds=definite,possible \
|
||||||
|
|||||||
Reference in New Issue
Block a user