summaryrefslogtreecommitdiff
path: root/atmel-samd
diff options
context:
space:
mode:
authorDan Halbert <halbert@halwitz.org>2017-08-05 17:43:48 -0400
committerScott Shawcroft <scott@tannewt.org>2017-08-05 17:48:16 -0700
commit5d509ecace763d2e0fad357f4af7c5979cc228fa (patch)
treed2ba0fee8c380d581f38322d88aebe083866a1d7 /atmel-samd
parent91d4cdb476c15df853f42e6b4bd3d117a42d2058 (diff)
Allow max stack checking to be used with -flto build by determining top
of stack in a different way.
Diffstat (limited to 'atmel-samd')
-rw-r--r--atmel-samd/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/atmel-samd/Makefile b/atmel-samd/Makefile
index 7111bee09..9e3a10bd8 100644
--- a/atmel-samd/Makefile
+++ b/atmel-samd/Makefile
@@ -132,6 +132,7 @@ CFLAGS = $(INC) -Wall -Werror -std=gnu11 -nostdlib $(CFLAGS_CORTEX_M0) $(CFLAGS_
ifeq ($(DEBUG), 1)
# NDEBUG disables assert() statements. This reduces code size pretty dramatically, per tannewt.
# Turn on Python modules useful for debugging (e.g. uheap, ustack).
+# -DMICROPY_DEBUG_MODULES may also be added to an -flto build, if you wish.
CFLAGS += -Os -ggdb -DNDEBUG -DENABLE_MICRO_TRACE_BUFFER -DMICROPY_DEBUG_MODULES
else
CFLAGS += -Os -DNDEBUG -flto