mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-23 00:04:02 -04:00
build: added sitl-asan build target
this enables the address sanitiser for array bounds error detection
This commit is contained in:
parent
577670ccee
commit
3d8993ff33
@ -74,6 +74,10 @@ empty: all
|
|||||||
# support debug build
|
# support debug build
|
||||||
%-debug: OPTFLAGS = -g -O0
|
%-debug: OPTFLAGS = -g -O0
|
||||||
|
|
||||||
|
# support address sanitiser
|
||||||
|
%-asan: OPTFLAGS = -g -O0 -fsanitize=address -fno-omit-frame-pointer
|
||||||
|
%-asan: LDFLAGS += -fsanitize=address
|
||||||
|
|
||||||
# cope with -nologging
|
# cope with -nologging
|
||||||
%-nologging: EXTRAFLAGS += "-DLOGGING_ENABLED=DISABLED "
|
%-nologging: EXTRAFLAGS += "-DLOGGING_ENABLED=DISABLED "
|
||||||
|
|
||||||
@ -94,6 +98,7 @@ endef
|
|||||||
define board_template
|
define board_template
|
||||||
$(1)-hil : $(1)
|
$(1)-hil : $(1)
|
||||||
$(1)-debug : $(1)
|
$(1)-debug : $(1)
|
||||||
|
$(1)-asan : $(1)
|
||||||
$(1)-hilsensors : $(1)
|
$(1)-hilsensors : $(1)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user