hosted: Make ASAN build optional.
Use ASAN=1 on the make command line to activate,
This commit is contained in:
parent
120b3134bb
commit
6d18a61b2e
|
@ -5,8 +5,10 @@ CFLAGS +=-I ./target -I./platforms/pc
|
||||||
|
|
||||||
ifneq (, $(findstring linux, $(SYS)))
|
ifneq (, $(findstring linux, $(SYS)))
|
||||||
SRC += serial_unix.c
|
SRC += serial_unix.c
|
||||||
|
ifeq ($(ASAN), 1)
|
||||||
CFLAGS += -fsanitize=address
|
CFLAGS += -fsanitize=address
|
||||||
LDFLAGS += -lasan
|
LDFLAGS += -lasan
|
||||||
|
endif
|
||||||
else ifneq (, $(findstring mingw, $(SYS)))
|
else ifneq (, $(findstring mingw, $(SYS)))
|
||||||
SRC += serial_win.c
|
SRC += serial_win.c
|
||||||
LDFLAGS += -lws2_32
|
LDFLAGS += -lws2_32
|
||||||
|
|
Loading…
Reference in New Issue