mirror of
https://github.com/thepigeongenerator/mcaselector-lite.git
synced 2025-12-17 09:35:46 +01:00
add sanitizers to flags
This commit is contained in:
3
makefile
3
makefile
@@ -14,7 +14,8 @@ CFLAGS := -Wall -Wextra -Wpedantic -Wno-pointer-arith -Ilib
|
|||||||
LDFLAGS :=
|
LDFLAGS :=
|
||||||
|
|
||||||
ifneq ($(DEBUG),0)
|
ifneq ($(DEBUG),0)
|
||||||
CFLAGS += -g -Og
|
CFLAGS += -g -Og -fsanitize=address,undefined
|
||||||
|
LDFLAGS += -fsanitize=address,undefined
|
||||||
PROF := dbg
|
PROF := dbg
|
||||||
else
|
else
|
||||||
CFLAGS += -DNDEBUG -O2 -Werror
|
CFLAGS += -DNDEBUG -O2 -Werror
|
||||||
|
|||||||
Reference in New Issue
Block a user