summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/build.sh b/build.sh
index e256f9f..0a7e7ce 100755
--- a/build.sh
+++ b/build.sh
@@ -10,7 +10,9 @@ CC=clang
ADDITIONAL_FLAGS='-Wno-unused-function -Wno-unneeded-internal-declaration'
WARNINGS='-Wall -Wextra -Wpedantic -Wconversion -Wshadow'
-DEBUG_FLAGS="-O0 -g3 $WARNINGS -std=c11"
+DEBUG_FLAGS="-O0 -g3 $WARNINGS -std=c11 -DTOC_DEBUG"
RELEASE_FLAGS="-O3 -DNDEBUG $WARNINGS -std=c11"
-$CC $DEBUG_FLAGS $ADDITIONAL_FLAGS -o toc main.c || exit 1
+COMMAND="$CC $DEBUG_FLAGS $ADDITIONAL_FLAGS -o toc main.c"
+echo $COMMAND
+$COMMAND || exit 1