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:
parent
e26ae5c981
commit
3a0e5fd775
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user