example scripts update; new BUILD_MODE=CHECKMEM; patched some memory leaks

This commit is contained in:
cozis
2022-12-09 14:26:31 +01:00
parent 5284251e19
commit 1671d178e4
5 changed files with 94 additions and 97 deletions
+4 -1
View File
@@ -52,7 +52,7 @@ LFLAGS = -lm
# Can be one of: YES, NO
USING_VALGRIND = NO
# May be one of: COVERAGE, RELEASE, DEBUG
# May be one of: COVERAGE, RELEASE, DEBUG, CHECKMEM
BUILD_MODE = RELEASE
# Changing the BUILD_MODE will add one of the
@@ -62,6 +62,9 @@ BUILD_MODE = RELEASE
CFLAGS_DEBUG = -DDEBUG -g
LFLAGS_DEBUG =
CFLAGS_CHECKMEM = -fsanitize=address -g
LFLAGS_CHECKMEM = -fsanitize=address
CFLAGS_RELEASE = -DNDEBUG -O3
LFLAGS_RELEASE =