diff --git a/src/platforms/hosted/Makefile.inc b/src/platforms/hosted/Makefile.inc index d1700d0..b3c6501 100644 --- a/src/platforms/hosted/Makefile.inc +++ b/src/platforms/hosted/Makefile.inc @@ -5,8 +5,10 @@ CFLAGS +=-I ./target -I./platforms/pc ifneq (, $(findstring linux, $(SYS))) SRC += serial_unix.c +ifeq ($(ASAN), 1) CFLAGS += -fsanitize=address LDFLAGS += -lasan +endif else ifneq (, $(findstring mingw, $(SYS))) SRC += serial_win.c LDFLAGS += -lws2_32