From: Holger Schemel Date: Thu, 20 Oct 2022 14:36:53 +0000 (+0200) Subject: added optional sanitizer flags when using Clang X-Git-Tag: 4.3.3.0~50 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=dfb50dc0bd7586c343a8cd16008644dceda92adf;p=rocksndiamonds.git added optional sanitizer flags when using Clang --- 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