File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 1- SRC_TARGETS =all clean install user-install uninstall user-uninstall
1+ SRC_TARGETS =all clean install user-install uninstall user-uninstall asan
22
33$(SRC_TARGETS ) : src/Makefile
44 $(MAKE ) -C src $@
Original file line number Diff line number Diff line change 11CC? = gcc
22TARGET = r2mcp
33CFLAGS = -Wall -Wextra -g
4+
5+ # AddressSanitizer build
6+ asan : CFLAGS += -fsanitize=address -fsanitize=undefined -g3 -O1
7+ asan : LDFLAGS += -fsanitize=address -fsanitize=undefined
8+ asan : clean $(TARGET )
9+ @echo " ✓ AddressSanitizer build complete."
410PKGCONFIG = pkg-config
511INSTALL_DIR? =install -d
612R2_LIBEXT =$(shell r2 -H R2_LIBEXT)
@@ -91,6 +97,7 @@ indent fmt:
9197help :
9298 @echo " Available targets:"
9399 @echo " all - Build the server (default)"
100+ @echo " asan - Build with AddressSanitizer (ASAN)"
94101 @echo " check_deps - Check for required dependencies"
95102 @echo " clean - Remove built binaries"
96103 @echo " install - Install the server to /usr/local/bin"
You can’t perform that action at this time.
0 commit comments