mirror of
https://github.com/licsber/micropython.git
synced 2024-09-19 16:40:23 +08:00
tools/mpy-tool.py: Fix static qstrs when freezing without qstr header.
It's rare to freeze .mpy files without specifying a qstr header from a firmware build, but it can be useful for testing, eg `mpy-tool.py -f test.mpy`. Fix this case so static qstrs are properly excluded from the frozen qstr list. Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
parent
abe43fe687
commit
0432f73206
@ -1795,7 +1795,7 @@ def main():
|
|||||||
else:
|
else:
|
||||||
config.MICROPY_QSTR_BYTES_IN_LEN = 1
|
config.MICROPY_QSTR_BYTES_IN_LEN = 1
|
||||||
config.MICROPY_QSTR_BYTES_IN_HASH = 1
|
config.MICROPY_QSTR_BYTES_IN_HASH = 1
|
||||||
firmware_qstr_idents = set(qstrutil.static_qstr_list)
|
firmware_qstr_idents = set(qstrutil.static_qstr_list_ident)
|
||||||
|
|
||||||
# Create initial list of global qstrs.
|
# Create initial list of global qstrs.
|
||||||
global_qstrs = GlobalQStrList()
|
global_qstrs = GlobalQStrList()
|
||||||
|
Loading…
Reference in New Issue
Block a user