diff options
author | Damien George <damien.p.george@gmail.com> | 2017-08-30 11:51:25 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-08-30 11:51:25 +1000 |
commit | 414537711dd05531c63eb830bfc9c3eecf657b1e (patch) | |
tree | e885b26c0e1ef94b189955546015893d704aaa1e /py/compile.c | |
parent | 39b465ca831d0ec866c2a137dccbfec7f7badfba (diff) | |
download | micropython-414537711dd05531c63eb830bfc9c3eecf657b1e.tar.gz micropython-414537711dd05531c63eb830bfc9c3eecf657b1e.zip |
py: Add MICROPY_USE_SMALL_HEAP_COMPILER option, disabled by default.
This new option allows the original and new parser/compiler to coexist.
Diffstat (limited to 'py/compile.c')
-rw-r--r-- | py/compile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/py/compile.c b/py/compile.c index 4e704abfbb..c856bde96f 100644 --- a/py/compile.c +++ b/py/compile.c @@ -36,7 +36,7 @@ #include "py/runtime.h" #include "py/asmbase.h" -#if MICROPY_ENABLE_COMPILER +#if MICROPY_ENABLE_COMPILER && !MICROPY_USE_SMALL_HEAP_COMPILER // TODO need to mangle __attr names @@ -3514,4 +3514,4 @@ mp_obj_t mp_compile(mp_parse_tree_t *parse_tree, qstr source_file, uint emit_opt return mp_make_function_from_raw_code(rc, MP_OBJ_NULL, MP_OBJ_NULL); } -#endif // MICROPY_ENABLE_COMPILER +#endif // MICROPY_ENABLE_COMPILER && !MICROPY_USE_SMALL_HEAP_COMPILER |