diff options
author | Damien George <damien.p.george@gmail.com> | 2016-01-31 22:24:16 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2016-04-13 16:07:47 +0100 |
commit | 0a2e9650f5383bc1190d6b27a3d923e313c3d879 (patch) | |
tree | cf8cf4d9e9c69c1d07ef65cf926c47763df72ef3 /unix | |
parent | 0699c6bf9e7a1754002948063390b68590fc3e96 (diff) | |
download | micropython-0a2e9650f5383bc1190d6b27a3d923e313c3d879.tar.gz micropython-0a2e9650f5383bc1190d6b27a3d923e313c3d879.zip |
py: Add ability to have frozen persistent bytecode from .mpy files.
The config variable MICROPY_MODULE_FROZEN is now made of two separate
parts: MICROPY_MODULE_FROZEN_STR and MICROPY_MODULE_FROZEN_MPY. This
allows to have none, either or both of frozen strings and frozen mpy
files (aka frozen bytecode).
Diffstat (limited to 'unix')
-rw-r--r-- | unix/mpconfigport.h | 2 | ||||
-rw-r--r-- | unix/mpconfigport_fast.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/unix/mpconfigport.h b/unix/mpconfigport.h index 1a6eb6f8d1..28a7e8b763 100644 --- a/unix/mpconfigport.h +++ b/unix/mpconfigport.h @@ -94,7 +94,7 @@ #define MICROPY_PY_CMATH (1) #define MICROPY_PY_IO_FILEIO (1) #define MICROPY_PY_GC_COLLECT_RETVAL (1) -#define MICROPY_MODULE_FROZEN (1) +#define MICROPY_MODULE_FROZEN_STR (1) #define MICROPY_STACKLESS (0) #define MICROPY_STACKLESS_STRICT (0) diff --git a/unix/mpconfigport_fast.h b/unix/mpconfigport_fast.h index 0694b7099c..b5be9f334f 100644 --- a/unix/mpconfigport_fast.h +++ b/unix/mpconfigport_fast.h @@ -36,5 +36,5 @@ // Don't include builtin upip, as this build is again intended just for // synthetic benchmarking -#undef MICROPY_MODULE_FROZEN -#define MICROPY_MODULE_FROZEN (0) +#undef MICROPY_MODULE_FROZEN_STR +#define MICROPY_MODULE_FROZEN_STR (0) |