Commit 66e6ad0
committed
py/mkrules.mk: Make MICROPY_MODULE_FROZEN_STR conditional on compiler.
When MICROPY_ENABLE_COMPILER=0, MICROPY_MODULE_FROZEN_STR defaults to 0
since frozen .py source files require the compiler at runtime. Only
pre-compiled .mpy bytecode can be used without the compiler.
Also pass MICROPY_ENABLE_COMPILER=0 to CFLAGS when explicitly set.
ports/windows/variants/pydfu: Disable compiler for frozen .mpy only.
The pydfu variant uses only pre-compiled frozen .mpy modules, so the
compiler is not needed. This reduces binary size by ~90KB.
Tested on Unix port with MICROPY_ENABLE_COMPILER=0 - frozen modules
execute correctly without the compiler.1 parent 9480e9b commit 66e6ad0
File tree
3 files changed
+20
-4
lines changed- ports/windows/variants/pydfu
- py
3 files changed
+20
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
| 29 | + | |
| 30 | + | |
33 | 31 | | |
34 | 32 | | |
35 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
215 | 225 | | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
216 | 232 | | |
217 | 233 | | |
218 | 234 | | |
| |||
0 commit comments