diff options
| author | Damien George | 2015-01-10 14:07:24 +0000 |
|---|---|---|
| committer | Damien George | 2015-01-10 14:07:24 +0000 |
| commit | ddd1e188011a021537c87c75f0a9e1818e335d5d (patch) | |
| tree | 167b683dbc0bf9b3467592d8b83f506c44b9848c /unix | |
| parent | 7bfe4b21b943d73d277441374d8688df91d6e037 (diff) | |
py: Add config option MICROPY_COMP_MODULE_CONST for module consts.
Compiler optimises lookup of module.CONST when enabled (an existing
feature). Disabled by default; enabled for unix, windows, stmhal.
Costs about 100 bytes ROM on stmhal.
Diffstat (limited to 'unix')
| -rw-r--r-- | unix/mpconfigport.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/unix/mpconfigport.h b/unix/mpconfigport.h index a874503a1..3f5d57703 100644 --- a/unix/mpconfigport.h +++ b/unix/mpconfigport.h @@ -39,6 +39,7 @@ #if !defined(MICROPY_EMIT_ARM) && defined(__arm__) #define MICROPY_EMIT_ARM (1) #endif +#define MICROPY_COMP_MODULE_CONST (1) #define MICROPY_ENABLE_GC (1) #define MICROPY_ENABLE_FINALISER (1) #define MICROPY_STACK_CHECK (1) |
