diff options
| author | Damien George <damien.p.george@gmail.com> | 2017-04-22 15:09:15 +1000 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2017-04-22 15:12:48 +1000 |
| commit | 03053f82db8fb79e8f62524948ebc2331c957af8 (patch) | |
| tree | 74fc1fcfdee32315af3d58c859017aea909b0487 /stmhal/mpconfigport.h | |
| parent | ae54fbf1668959e50632034495631b0c5952ae9d (diff) | |
mpy-cross, unix, windows, stmhal: Enable return-if-else optimisation.
Prior to making this a config option it was previously available on these
(and all other) ports, and it makes sense to keep it enabled for mpy-cross
as well as ports that have a decent amount of space for the code.
Diffstat (limited to 'stmhal/mpconfigport.h')
| -rw-r--r-- | stmhal/mpconfigport.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/stmhal/mpconfigport.h b/stmhal/mpconfigport.h index 2186e2ed6..444ce9303 100644 --- a/stmhal/mpconfigport.h +++ b/stmhal/mpconfigport.h @@ -45,6 +45,7 @@ // compiler configuration #define MICROPY_COMP_MODULE_CONST (1) #define MICROPY_COMP_TRIPLE_TUPLE_ASSIGN (1) +#define MICROPY_COMP_RETURN_IF_EXPR (1) // optimisations #define MICROPY_OPT_COMPUTED_GOTO (1) |
