Skip to content

Commit

Permalink
Add Makefile flags for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
Rangi42 committed Sep 24, 2024
1 parent 96a5cb7 commit c821dcb
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion tools/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
.PHONY: all clean

CC := gcc
CFLAGS := -O3 -flto -std=c11 -Wall -Wextra -pedantic
CFLAGS := -g -ggdb3 -O3 -flto -std=c11 -Wall -Wextra -pedantic \
-Walloc-zero -Wcast-align -Wcast-qual -Wduplicated-branches -Wduplicated-cond \
-Wfloat-equal -Wlogical-op -Wnull-dereference -Wshift-overflow=2 \
-Wstringop-overflow=4 -Wundef -Wuninitialized -Wunused -Wshadow \
-Wformat=2 -Wformat-overflow=2 -Wformat-truncation=1 \
-Wno-format-nonliteral -Wno-strict-overflow -Wno-unused-but-set-variable \
-Wno-type-limits -Wno-tautological-constant-out-of-range-compare \
-D_GLIBCXX_ASSERTIONS \
-fsanitize=shift -fsanitize=integer-divide-by-zero \
-fsanitize=unreachable -fsanitize=vla-bound \
-fsanitize=signed-integer-overflow -fsanitize=bounds \
-fsanitize=object-size -fsanitize=bool -fsanitize=enum \
-fsanitize=alignment -fsanitize=null -fsanitize=address

tools := \
gfx \
Expand Down

0 comments on commit c821dcb

Please sign in to comment.