mirror of
https://github.com/thepigeongenerator/sdl_template.git
synced 2025-12-17 05:55:47 +01:00
add sanitizers to debug builds
This commit is contained in:
2
makefile
2
makefile
@@ -8,7 +8,7 @@ CFLAGS := $(shell pkg-config --cflags sdl2) -Wall -Wextra -Wpedantic -Wno-pointe
|
||||
LDFLAGS := $(shell pkg-config --libs sdl2) -lm
|
||||
|
||||
ifeq ($(DEBUG),1)
|
||||
CFLAGS += -DDEBUG -Og -g
|
||||
CFLAGS += -DDEBUG -Og -g -fsanitize=address,undefined,leak,integer
|
||||
else
|
||||
REL_FLAGS += -O3
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user