From 062fac1d43d42b35e0ecdaaec124c29b65db7c68 Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Sat, 25 Feb 2017 12:19:33 +0100 Subject: atmel-samd: Use link time optimization to reduce code size of builds which share space with the file system. "Express" builds with SPI flash crash the compiler for some reason so its currently disabled for them. --- py/objnamedtuple.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'py/objnamedtuple.h') diff --git a/py/objnamedtuple.h b/py/objnamedtuple.h index f6621642a..89bc16311 100644 --- a/py/objnamedtuple.h +++ b/py/objnamedtuple.h @@ -25,6 +25,9 @@ * THE SOFTWARE. */ +#ifndef __MICROPY_INCLUDED_PY_OBJNAMEDTUPLE_H__ +#define __MICROPY_INCLUDED_PY_OBJNAMEDTUPLE_H__ + #include #include "py/nlr.h" @@ -50,6 +53,8 @@ void namedtuple_attr(mp_obj_t self_in, qstr attr, mp_obj_t *dest); mp_obj_t namedtuple_make_new(const mp_obj_type_t *type_in, size_t n_args, size_t n_kw, const mp_obj_t *args); -const mp_rom_obj_tuple_t namedtuple_base_tuple; +const mp_rom_obj_tuple1_t namedtuple_base_tuple; #endif // MICROPY_PY_COLLECTIONS + +#endif // __MICROPY_INCLUDED_PY_OBJNAMEDTUPLE_H__ -- cgit v1.2.3