X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2FMakefile;h=ec8cb5e9224ae2eb74b8124dd5da4d1a472f0dd5;hb=dfb50dc0bd7586c343a8cd16008644dceda92adf;hp=bea3ad8a11476e7d9c8874b2a3fc122589c6685b;hpb=3bd276d072694c0a285d951c00fa5f856c485741;p=rocksndiamonds.git diff --git a/src/Makefile b/src/Makefile index bea3ad8a..ec8cb5e9 100644 --- a/src/Makefile +++ b/src/Makefile @@ -72,6 +72,7 @@ endif ifeq ($(shell uname -s),Darwin) # compiling on Mac OS X DEBUGGER = lldb --batch -o "run" -k "bt" -k "quit" +SANITIZING_FLAGS = -fsanitize=undefined ifdef BUILD_DIST # distribution build MAC_TARGET_VERSION_MIN = 10.7 EXTRA_FLAGS_MAC = -mmacosx-version-min=$(MAC_TARGET_VERSION_MIN) @@ -127,6 +128,7 @@ CONFIG = $(CONFIG_BASE_PATH) $(JOYSTICK) DEBUG = -DDEBUG -g # ANALYZE = $(PROFILING_FLAGS) +# ANALYZE = $(SANITIZING_FLAGS) # OPTIONS = $(DEBUG) -Wall # only for debugging purposes # OPTIONS = $(DEBUG) -O2 -Wall # only for debugging purposes