summaryrefslogtreecommitdiff
path: root/compile
diff options
context:
space:
mode:
Diffstat (limited to 'compile')
-rwxr-xr-xcompile2
1 files changed, 2 insertions, 0 deletions
diff --git a/compile b/compile
index 39a2d99..ea00965 100755
--- a/compile
+++ b/compile
@@ -24,6 +24,8 @@ warnings="-Wall -pedantic -Wno-parentheses -Wno-missing-braces \
stdflags="-std=c2x -D_DEFAULT_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64"
dbg=0
+if [ "$1" = "dbg" ]; then dbg=1; fi
+
if [ "$dbg" = 1 ]; then
cflags="-O0 -g3 -masm=intel -fsanitize-trap=undefined -DSST_DBG"
ldflags="-O0 -g3"