summaryrefslogtreecommitdiffstatshomepage
path: root/unix-cpy
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-03-14 13:11:35 +0000
committerDamien George <damien.p.george@gmail.com>2015-03-14 13:11:35 +0000
commit42e0c593084784cb0b630d99b8361bc88abadb78 (patch)
tree77fbdc4ec51705f0e29e07b050b520a0e27f13f2 /unix-cpy
parenta77ffe66b23fe0f367af3dd64ae94b56fbf947d3 (diff)
downloadmicropython-42e0c593084784cb0b630d99b8361bc88abadb78.tar.gz
micropython-42e0c593084784cb0b630d99b8361bc88abadb78.zip
py: Add MICROPY_COMP_{DOUBLE,TRIPLE}_TUPLE_ASSIGN config options.
These allow to fine-tune the compiler to select whether it optimises tuple assignments of the form a, b = c, d and a, b, c = d, e, f. Sensible defaults are provided.
Diffstat (limited to 'unix-cpy')
-rw-r--r--unix-cpy/mpconfigport.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/unix-cpy/mpconfigport.h b/unix-cpy/mpconfigport.h
index 2c1d5d7b27..9d446b68a1 100644
--- a/unix-cpy/mpconfigport.h
+++ b/unix-cpy/mpconfigport.h
@@ -27,6 +27,7 @@
// options to control how Micro Python is built
#define MICROPY_EMIT_CPYTHON (1)
+#define MICROPY_COMP_TRIPLE_TUPLE_ASSIGN (1)
#define MICROPY_HELPER_LEXER_UNIX (1)
#define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_DOUBLE)
#define MICROPY_PY_IO (0)