Skip to content

Commit 0d26d90

Browse files
committed
Makefile: add Undefined Behaviour sanitizer
1 parent 0cf442c commit 0d26d90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ WARNINGS = -Wall -Wextra -Wundef -Wshadow -Wpointer-arith -Wcast-align \
1313
-Wstrict-prototypes -Wwrite-strings -Waggregate-return
1414
CFLAGS := -std=c99 -pedantic $(WARNINGS) -O2 $(CFLAGS)
1515
LFLAGS := $(LFLAGS)
16-
DEBUG = -g -O0 -fsanitize=address
16+
DEBUG = -g -Og -fsanitize=address -fsanitize=undefined
1717

1818
.PHONY: all clean debug
1919

0 commit comments

Comments
 (0)