diff options
| author | Joseph Henry <josephjah@gmail.com> | 2017-12-14 13:27:49 -0800 |
|---|---|---|
| committer | Joseph Henry <josephjah@gmail.com> | 2017-12-14 13:27:49 -0800 |
| commit | 346fa4d7f4506e9ddbf8dc8278210bc0c2b08251 (patch) | |
| tree | c61f755f03005252b75233cd43565dc866e422c7 /make-linux.mk | |
| parent | 7a22f01dd8ec5801ccd48cda832f009245601040 (diff) | |
| download | infinitytier-346fa4d7f4506e9ddbf8dc8278210bc0c2b08251.tar.gz infinitytier-346fa4d7f4506e9ddbf8dc8278210bc0c2b08251.zip | |
Added ZT_SANITIZE option to makefiles. This your new memory debugging best friend
Diffstat (limited to 'make-linux.mk')
| -rw-r--r-- | make-linux.mk | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/make-linux.mk b/make-linux.mk index 5b623247..5e0f5b98 100644 --- a/make-linux.mk +++ b/make-linux.mk @@ -55,6 +55,10 @@ ifeq ($(ZT_RULES_ENGINE_DEBUGGING),1) override DEFS+=-DZT_RULES_ENGINE_DEBUGGING endif +# Build with address sanitization library for advanced debugging (clang) +ifeq ($(ZT_SANITIZE),1) + SANFLAGS+=-fsanitize=address -DASAN_OPTIONS=symbolize=1 +endif ifeq ($(ZT_DEBUG),1) override CFLAGS+=-Wall -Wno-deprecated -Werror -g -pthread $(INCLUDES) $(DEFS) override CXXFLAGS+=-Wall -Wno-deprecated -Werror -g -std=c++11 -pthread $(INCLUDES) $(DEFS) |
