diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-12-15 11:03:27 -0800 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-12-15 11:03:27 -0800 |
| commit | 1f0b3a32d51be6a6e9fe1072967410efab5b2f6d (patch) | |
| tree | 3c7f684a84b19734b252a8c9ad407b05f11c92c2 /make-linux.mk | |
| parent | 060870462606f82d3a9b0fe6aca87f8a5de8705e (diff) | |
| parent | 346fa4d7f4506e9ddbf8dc8278210bc0c2b08251 (diff) | |
| download | infinitytier-1f0b3a32d51be6a6e9fe1072967410efab5b2f6d.tar.gz infinitytier-1f0b3a32d51be6a6e9fe1072967410efab5b2f6d.zip | |
Merge branch 'dev' of http://10.6.6.2/zerotier/ZeroTierOne into dev
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 99268990..89cda781 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) |
