1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

tests/unittests: enable address sanitizer for native

This commit is contained in:
Kaspar Schleiser 2022-05-11 21:49:57 +02:00
parent e26ae5c981
commit 3a0e5fd775

View File

@ -28,6 +28,13 @@ INCLUDES += -I$(RIOTBASE)/tests/unittests/common
# some tests need more stack
CFLAGS += -DTHREAD_STACKSIZE_MAIN=THREAD_STACKSIZE_LARGE
# for these boards, enable asan (Address Sanitizer)
ASAN_BOARDS ?= native
ifneq (, $(filter $(BOARD), $(ASAN_BOARDS)))
CFLAGS += $(CFLAGS_ASAN)
LINKFLAGS += $(LINKFLAGS_ASAN)
endif
include $(RIOTBASE)/Makefile.include
.PHONY: $(UNIT_TESTS)