Makefile: integrate libasan to our build system
The libasan library allows to get reports for memory leaks and stack issues at runtime, with very few performance drawbacks. This commits add integration for this in the Makefile, for the default target. Signed-off-by: Adrien 'neox' Bourmault <neox@a-lec.org>
This commit is contained in:
parent
546497f349
commit
502fc8939f
4
Makefile
4
Makefile
|
@ -10,7 +10,9 @@ DOXYGEN=doxygen
|
|||
CFLAGS=`pkg-config --cflags gtk4 epoxy glib-2.0 libxml-2.0`
|
||||
LDFLAGS=`pkg-config --libs gtk4 epoxy glib-2.0 libxml-2.0` -lGL -lGLU -lm -lepoxy -lX11 -lGLEW
|
||||
WARNINGS = -Wall
|
||||
DEBUG = -ggdb -fno-omit-frame-pointer #-fdiagnostics-color=always -fsanitize=bounds -fstack-check
|
||||
DEBUG = -ggdb -fno-omit-frame-pointer \
|
||||
-fdiagnostics-color=always \
|
||||
-fsanitize=address,undefined -fstack-protector-strong
|
||||
OPTIMIZE = -O3
|
||||
|
||||
BINDIR=bin
|
||||
|
|
Loading…
Reference in New Issue