asan/ubsan & valgrind
This commit is contained in:
8
Makefile
8
Makefile
@ -1,7 +1,5 @@
|
||||
.PHONY: clean test
|
||||
|
||||
WRAP := valgrind --track-origins=yes --leak-check=full --show-leak-kinds=all
|
||||
|
||||
ifeq (${DEBUG}, 1)
|
||||
LFLAGS += --debug --trace
|
||||
CFLAGS += -O0 -ggdb -fno-inline
|
||||
@ -10,6 +8,12 @@ else
|
||||
CFLAGS += -O3 -flto=auto -fno-stack-protector
|
||||
endif
|
||||
|
||||
ifeq ($(SAN), 1)
|
||||
CFLAGS += -fsanitize=address,undefined
|
||||
else
|
||||
WRAP := valgrind --track-origins=yes --leak-check=full --show-leak-kinds=all
|
||||
endif
|
||||
|
||||
CFLAGS += -Wall -Wextra -Wpedantic
|
||||
|
||||
OUT := eaxhla
|
||||
|
Reference in New Issue
Block a user