summaryrefslogtreecommitdiff
path: root/unix/mpconfigport.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-05-16 23:17:11 +0100
committerDamien George <damien.p.george@gmail.com>2016-05-16 23:17:11 +0100
commit1e024de7befea5f879b0120deb8c0d0f71e039ff (patch)
tree27f15c5892199fe2a35816b9d5e19fc7128ebf03 /unix/mpconfigport.h
parent99b4719357f52cdc945db3ca7213b21d43297170 (diff)
unix: Add ability to include frozen bytecode in the build.
To use frozen bytecode make a subdirectory under the unix/ directory (eg frozen/), put .py files there, then run: make FROZEN_MPY_DIR=frozen Be sure to build from scratch. The .py files will then be available for importing.
Diffstat (limited to 'unix/mpconfigport.h')
-rw-r--r--unix/mpconfigport.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/unix/mpconfigport.h b/unix/mpconfigport.h
index d9cfbc919..463f5fe8c 100644
--- a/unix/mpconfigport.h
+++ b/unix/mpconfigport.h
@@ -64,7 +64,9 @@
#define MICROPY_LONGINT_IMPL (MICROPY_LONGINT_IMPL_MPZ)
#define MICROPY_STREAMS_NON_BLOCK (1)
#define MICROPY_OPT_COMPUTED_GOTO (1)
+#ifndef MICROPY_OPT_CACHE_MAP_LOOKUP_IN_BYTECODE
#define MICROPY_OPT_CACHE_MAP_LOOKUP_IN_BYTECODE (1)
+#endif
#define MICROPY_CAN_OVERRIDE_BUILTINS (1)
#define MICROPY_PY_FUNCTION_ATTRS (1)
#define MICROPY_PY_DESCRIPTORS (1)