Permalink
Browse files

Add address sanitizer compilation flags.

  • Loading branch information...
matlo committed Jun 5, 2018
1 parent d169488 commit 84b66c744ab3200cbc89c74e47e1fe828ed84de7
Showing with 8 additions and 6 deletions.
  1. +4 −3 Makedefs
  2. +4 −3 shared/Makedefs
View
@@ -8,9 +8,10 @@ LD = $(CXX)
CFLAGS += -Wall -Wextra -O3
CXXFLAGS += -Wall -Wextra -O3
#Comment the above two lines and uncomment the below two lines to compile with debug symbols.
#CFLAGS += -Wall -Wextra -O0 -g
#CXXFLAGS += -Wall -Wextra -O0 -g
#Comment the above two lines and uncomment the below three lines to compile with debug symbols.
#CFLAGS += -Wall -Wextra -O0 -g -fsanitize=address -fno-omit-frame-pointer
#CXXFLAGS += -Wall -Wextra -O0 -g -fsanitize=address -fno-omit-frame-pointer
#LDLIBS += -lasan
CPPFLAGS += -I../shared
View
@@ -6,9 +6,10 @@ endif
CFLAGS += -Wall -Wextra -O3
CXXFLAGS += -Wall -Wextra -O3
#Comment the above two lines and uncomment the below two lines to compile with debug symbols.
#CFLAGS += -Wall -Wextra -O0 -g
#CXXFLAGS += -Wall -Wextra -O0 -g
#Comment the above two lines and uncomment the below three lines to compile with debug symbols.
#CFLAGS += -Wall -Wextra -O0 -g -fsanitize=address -fno-omit-frame-pointer
#CXXFLAGS += -Wall -Wextra -O0 -g -fsanitize=address -fno-omit-frame-pointer
#LDLIBS += -lasan
CPPFLAGS += -I../

0 comments on commit 84b66c7

Please sign in to comment.