Skip to content

Commit

Permalink
Add -fsanitize=undefined to clang builds
Browse files Browse the repository at this point in the history
  • Loading branch information
aaaaaa123456789 committed Jan 22, 2022
1 parent e64cad6 commit 3b3a4c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ ifneq (,$(findstring gcc,$(CC)))
DEBUGFLAGS += -Wduplicated-branches -Wduplicated-cond -Wlogical-op -Wshift-overflow=2 -fanalyzer -fanalyzer-verbosity=0
else
ifneq (,$(findstring clang, $(CC)))
DEBUGFLAGS += -Wno-keyword-macro
DEBUGFLAGS += -Wno-keyword-macro -fsanitize=undefined
endif
endif

Expand Down

0 comments on commit 3b3a4c1

Please sign in to comment.