Skip to content

Commit ba089bc

Browse files
committed
Details
Added comments in the makefile about other useful '-fsanitize' options.
1 parent 1e64c13 commit ba089bc

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

makefile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,13 @@ CWARNS= $(CWARNSCPP) $(CWARNSC) $(CWARNGCC)
5757

5858
# -pg -malign-double
5959
# -DLUA_USE_CTYPE -DLUA_USE_APICHECK
60-
# ('-ftrapv' for runtime checks of integer overflows)
61-
# -fsanitize=undefined -ftrapv -fno-inline
60+
61+
# The following options help detect "undefined behavior"s that seldom
62+
# create problems; some are only available in newer gcc versions. To
63+
# use some of them, we also have to define an enrivonment variable
64+
# ASAN_OPTIONS="detect_invalid_pointer_pairs=2".
65+
# -fsanitize=undefined
66+
# -fsanitize=pointer-subtract -fsanitize=address -fsanitize=pointer-compare
6267
# TESTS= -DLUA_USER_H='"ltests.h"' -O0 -g
6368

6469

0 commit comments

Comments
 (0)